Skip to content

Commit 7436120

Browse files
committed
use w str variants explicitly
1 parent ff0a18b commit 7436120

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tools/clang/unittests/HLSLExec/ExecutionTest.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -820,10 +820,10 @@ class ExecutionTest {
820820
return false;
821821
}
822822

823-
if (GetModuleHandle("d3d10warp.dll") != NULL) {
824-
CHAR szFullModuleFilePath[MAX_PATH] = "";
825-
GetModuleFileName(GetModuleHandle("d3d10warp.dll"),
826-
szFullModuleFilePath, sizeof(szFullModuleFilePath));
823+
if (GetModuleHandleW(L"d3d10warp.dll") != NULL) {
824+
WCHAR szFullModuleFilePath[MAX_PATH] = L"";
825+
GetModuleFileNameW(GetModuleHandleW(L"d3d10warp.dll"),
826+
szFullModuleFilePath, sizeof(szFullModuleFilePath));
827827
WEX::Logging::Log::Comment(WEX::Common::String().Format(
828828
L"WARP driver loaded from: %S", szFullModuleFilePath));
829829
}

0 commit comments

Comments
 (0)