dart-sdk/runtime/platform
Simon Binder ada6b81761 [vm/ffi] Improve error messages on Windows
Use `FormatMessageA` to allocate an English description of an error code.
Previously, only the error code itself was shown.

Closes https://github.com/dart-lang/sdk/issues/52790

TEST=tests/ffi/dylib_open_test.dart
Cq-Include-Trybots: luci.dart.try:vm-win-debug-x64-try,vm-win-debug-x64c-try,vm-aot-win-debug-x64c-try,vm-aot-asan-linux-release-x64-try,vm-asan-linux-release-x64-try
Change-Id: Iccae6c763fb16d4bb999b9c260fcfea9c5de276b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/328420
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Daco Harkes <dacoharkes@google.com>
2023-12-20 13:24:16 +00:00
..
address_sanitizer.h Revert "[vm] Mark Zone memory as unallocated/allocated/uninitialized for Address and Memory Sanitizer." 2023-06-16 11:22:38 +00:00
allocation.cc [vm] Clean up ClassTable 2022-09-10 15:12:35 +00:00
allocation.h [vm] Clean up ClassTable 2022-09-10 15:12:35 +00:00
assert.cc [vm] Update NULL to nullptr in runtime/platform. 2023-03-30 20:49:48 +00:00
assert.h Reland "[vm] Migrate FFI callbacks to the new metadata system." 2023-06-06 02:07:58 +00:00
atomic.h [vm, gc] Mark through new-space. 2023-12-12 01:56:15 +00:00
BUILD.gn [fuchsia] allow injecting the inspect node 2021-03-22 17:38:24 +00:00
elf.h [vm] Update to constexpr in runtime/platform and lib. 2023-04-11 17:43:58 +00:00
floating_point.h [gardening] Fix import to fix Flutter build 2019-09-06 09:08:49 +00:00
floating_point_win.cc Spelling 2023-01-24 18:00:25 +00:00
floating_point_win.h Make header include guards great again 2016-10-26 00:26:03 -07:00
globals.h [vm] Fix some cross compilation issues from Linux to Windows 2023-11-13 14:25:28 +00:00
growable_array.h [vm] Update NULL to nullptr in runtime/platform. 2023-03-30 20:49:48 +00:00
hashmap.cc [vm] Update NULL to nullptr in runtime/platform. 2023-03-30 20:49:48 +00:00
hashmap.h [vm] Update NULL to nullptr in runtime/platform. 2023-03-30 20:49:48 +00:00
leak_sanitizer.h [vm] Fix zero-as-null-pointer-constant warnings in the VM. 2023-04-10 21:38:57 +00:00
mach_o.h [vm] Update to constexpr in runtime/platform and lib. 2023-04-11 17:43:58 +00:00
memory_sanitizer.h Revert "[vm] Mark Zone memory as unallocated/allocated/uninitialized for Address and Memory Sanitizer." 2023-06-16 11:22:38 +00:00
pe.h [vm] Update to constexpr in runtime/platform and lib. 2023-04-11 17:43:58 +00:00
platform_sources.gni [vm/win/aot] Provide unwinding information for Windows AOT snapshots. 2023-05-11 03:14:27 +00:00
priority_queue.h [vm] Update to constexpr in runtime/platform and lib. 2023-04-11 17:43:58 +00:00
safe_stack.h [vm] Fix various UBSan failures. 2020-05-07 19:40:18 +00:00
signal_blocker.h [vm] Update NULL to nullptr in runtime/platform. 2023-03-30 20:49:48 +00:00
splay-tree-inl.h [ VM ] Updated splay-tree licenses, added V8 project authors to AUTHORS 2019-04-30 19:50:46 +00:00
splay-tree.h [ VM ] Updated splay-tree licenses, added V8 project authors to AUTHORS 2019-04-30 19:50:46 +00:00
syslog.h [build] Remove last platform -> vm and bin -> vm dependencies. Fix some ODR violations. 2019-04-22 20:15:43 +00:00
syslog_android.cc [standalone] Fix reuse of va_list in syslog_android.cc. 2021-12-15 22:22:36 +00:00
syslog_fuchsia.cc [vm] Reland: Prefix HOST_OS_* and TARGET_OS_* with DART_ 2021-07-02 19:06:45 +00:00
syslog_linux.cc [vm] Reland: Prefix HOST_OS_* and TARGET_OS_* with DART_ 2021-07-02 19:06:45 +00:00
syslog_macos.cc [vm] Reland: Prefix HOST_OS_* and TARGET_OS_* with DART_ 2021-07-02 19:06:45 +00:00
syslog_win.cc [vm] Reland: Prefix HOST_OS_* and TARGET_OS_* with DART_ 2021-07-02 19:06:45 +00:00
text_buffer.cc [VM/Service] Rename JSONStream::AppendSerializedObject to JSONStream::AppendBytes 2023-04-17 15:58:28 +00:00
text_buffer.h [vm] Speed up JSON encoding. 2023-02-21 18:58:42 +00:00
thread_sanitizer.h [vm] Allow non-TSAN gen_snapshot target TSAN AOT runtime 2023-07-10 11:53:58 +00:00
unaligned.h [vm] Fix various UBSan failures. 2020-05-07 19:40:18 +00:00
undefined_behavior_sanitizer.h [vm] Fix various UBSan failures. 2020-05-07 19:40:18 +00:00
unicode.cc [vm] Update to constexpr in runtime/platform and lib. 2023-04-11 17:43:58 +00:00
unicode.h [vm] Update to constexpr in runtime/platform and lib. 2023-04-11 17:43:58 +00:00
unwinding_records.cc [vm] Unwind records for Windows ARM64. 2023-11-21 20:39:29 +00:00
unwinding_records.h [vm] Unwind records for Windows ARM64. 2023-11-21 20:39:29 +00:00
unwinding_records_win.cc [vm] Unwind records for Windows ARM64. 2023-11-21 20:39:29 +00:00
utils.cc [vm/ffi] Improve error messages on Windows 2023-12-20 13:24:16 +00:00
utils.h [vm/aot] Fix BoxInt64 in deferred units 2023-11-28 13:15:56 +00:00
utils_android.cc [vm] Update to variadic FATAL. 2023-03-06 22:06:59 +00:00
utils_android.h [vm/compiler] bit utilities 2019-10-07 18:13:06 +00:00
utils_fuchsia.cc [vm] Update to variadic FATAL. 2023-03-06 22:06:59 +00:00
utils_fuchsia.h [fuchsia] allow injecting the inspect node 2021-03-22 17:38:24 +00:00
utils_linux.cc [vm] Update to variadic FATAL. 2023-03-06 22:06:59 +00:00
utils_linux.h [vm/compiler] bit utilities 2019-10-07 18:13:06 +00:00
utils_macos.cc [vm] Update NULL to nullptr in runtime/platform. 2023-03-30 20:49:48 +00:00
utils_macos.h [vm] Make VM strict about min required Mac OS X version. 2023-03-08 09:08:39 +00:00
utils_win.cc [vm] Update NULL to nullptr in runtime/platform. 2023-03-30 20:49:48 +00:00
utils_win.h [vm/compiler] bit utilities 2019-10-07 18:13:06 +00:00