[PATCH] D58766: [sanitizers] Explicitly use GetModuleFileNameW with wchar_t

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 1 00:08:12 PST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL355180: [sanitizers] Explicitly use GetModuleFileNameW with wchar_t (authored by mstorsjo, committed by ).
Herald added a subscriber: delcypher.

Changed prior to commit:
  https://reviews.llvm.org/D58766?vs=188692&id=188852#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58766/new/

https://reviews.llvm.org/D58766

Files:
  compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc


Index: compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc
===================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc
@@ -1096,7 +1096,7 @@
     do {
       filename.resize(filename.size() + 0x100);
       filename_length =
-          GetModuleFileName(NULL, filename.begin(), filename.size());
+          GetModuleFileNameW(NULL, filename.begin(), filename.size());
     } while (filename_length >= filename.size());
     TraceLoggingWrite(g_asan_provider, "AsanReportEvent",
                       TraceLoggingValue(filename.begin(), "ExecutableName"),


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58766.188852.patch
Type: text/x-patch
Size: 688 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190301/676a45e3/attachment.bin>


More information about the llvm-commits mailing list