Skip to content

Commit

Permalink
xrCore/ModuleLookup.cpp: Fixed LoadLibrary call.
Browse files Browse the repository at this point in the history
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 *.
  • Loading branch information
Kaffeine committed Nov 25, 2015
1 parent b6e34b1 commit c89dadc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xrCore/ModuleLookup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ HMODULE LoadLibrary(const char *libraryFileName, bool log)
{
if (log)
Log("Loading DLL:", libraryFileName);
return ::LoadLibrary(libraryFileName);
return ::LoadLibraryA(libraryFileName);
}

void UnloadLibrary(HMODULE libraryHandle)
Expand Down

0 comments on commit c89dadc

Please sign in to comment.