summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Windows/Signals.inc
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2013-10-07 09:52:36 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2013-10-07 09:52:36 +0000
commit17a44966be8655ccc7772d842bda554f72cedcbd (patch)
tree8e91ed88666f4a3486f71220962aac00b5b8d198 /llvm/lib/Support/Windows/Signals.inc
parentf7c520ff66d2029b1440db6768c811055d1038f6 (diff)
downloadbcm5719-llvm-17a44966be8655ccc7772d842bda554f72cedcbd.tar.gz
bcm5719-llvm-17a44966be8655ccc7772d842bda554f72cedcbd.zip
Windows: Be more explicit with Win32 APIs
This addresses several issues in a similar vein: - Use the Unicode APIs when possible, running nm on clang shows that we only use Unicode APIs except for FormatMessage, CreateSemaphore, and GetModuleHandle. AFAICT, the latter two are coming from MinGW and not LLVM itself. - Make getMainExecutable more resilient. It previously considered return values of zero from ::GetModuleFileNameA to be acceptable. llvm-svn: 192096
Diffstat (limited to 'llvm/lib/Support/Windows/Signals.inc')
-rw-r--r--llvm/lib/Support/Windows/Signals.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Windows/Signals.inc b/llvm/lib/Support/Windows/Signals.inc
index 2b4a66d0089..4b40d51e5b5 100644
--- a/llvm/lib/Support/Windows/Signals.inc
+++ b/llvm/lib/Support/Windows/Signals.inc
@@ -135,7 +135,7 @@ typedef PVOID (WINAPI *fpSymFunctionTableAccess64)(HANDLE, DWORD64);
static fpSymFunctionTableAccess64 SymFunctionTableAccess64;
static bool load64BitDebugHelp(void) {
- HMODULE hLib = ::LoadLibrary(TEXT("Dbghelp.dll"));
+ HMODULE hLib = ::LoadLibraryW(L"Dbghelp.dll");
if (hLib) {
StackWalk64 = (fpStackWalk64)
::GetProcAddress(hLib, "StackWalk64");
OpenPOWER on IntegriCloud