Skip to content

Commit c89dadc

Browse files
committed
xrCore/ModuleLookup.cpp: Fixed LoadLibrary call.
Use LoadLibraryA instead of LoadLibrary so we 1) Call an out-of-namespace function instead of calling macro, 2) Use ANSI version of LoadLibrary, as argument is const char *.
1 parent b6e34b1 commit c89dadc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xrCore/ModuleLookup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ HMODULE LoadLibrary(const char *libraryFileName, bool log)
1010
{
1111
if (log)
1212
Log("Loading DLL:", libraryFileName);
13-
return ::LoadLibrary(libraryFileName);
13+
return ::LoadLibraryA(libraryFileName);
1414
}
1515

1616
void UnloadLibrary(HMODULE libraryHandle)

0 commit comments

Comments
 (0)