* ldh.cc (WinMain): Change DONT_RESOLVE_DLL_REFERENCES to

LOAD_WITH_ALTERED_SEARCH_PATH.
This commit is contained in:
Corinna Vinschen 2010-08-28 12:12:53 +00:00
parent 9bf2a8a84a
commit 552bc28f46
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-08-28 Corinna Vinschen <corinna@vinschen.de>
* ldh.cc (WinMain): Change DONT_RESOLVE_DLL_REFERENCES to
LOAD_WITH_ALTERED_SEARCH_PATH.
2010-08-28 Corinna Vinschen <corinna@vinschen.de>
* loadlib.h: New header implementing safe LoadLibrary calls.

View File

@ -11,7 +11,7 @@ WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
cmd += 4;
break;
}
if (!*cmd || !LoadLibraryExW (cmd, NULL, DONT_RESOLVE_DLL_REFERENCES))
if (!*cmd || !LoadLibraryExW (cmd, NULL, LOAD_WITH_ALTERED_SEARCH_PATH ))
ExitProcess (0x0100);
ExitProcess (0x0000);
}