From 552bc28f4650ccd83757ebee28e24ca8237829e5 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sat, 28 Aug 2010 12:12:53 +0000 Subject: [PATCH] * ldh.cc (WinMain): Change DONT_RESOLVE_DLL_REFERENCES to LOAD_WITH_ALTERED_SEARCH_PATH. --- winsup/utils/ChangeLog | 5 +++++ winsup/utils/ldh.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index df6e1833d..212bd5d3f 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -1,3 +1,8 @@ +2010-08-28 Corinna Vinschen + + * ldh.cc (WinMain): Change DONT_RESOLVE_DLL_REFERENCES to + LOAD_WITH_ALTERED_SEARCH_PATH. + 2010-08-28 Corinna Vinschen * loadlib.h: New header implementing safe LoadLibrary calls. diff --git a/winsup/utils/ldh.cc b/winsup/utils/ldh.cc index db0449f8d..13655ed23 100644 --- a/winsup/utils/ldh.cc +++ b/winsup/utils/ldh.cc @@ -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); }