Hongbo Ni : user32: Fix DLL injection problem using LOAD_WITH_ALTERED_SEARCH_PATH.
Alexandre Julliard
julliard at winehq.org
Thu Aug 27 10:31:30 CDT 2009
Module: wine
Branch: master
Commit: 650a0f3fdd8c2b0dfbefd035fa8d8c8691c8c026
URL: http://source.winehq.org/git/wine.git/?a=commit;h=650a0f3fdd8c2b0dfbefd035fa8d8c8691c8c026
Author: Hongbo Ni <hongbo at njstar.com>
Date: Thu Aug 27 11:18:14 2009 +1000
user32: Fix DLL injection problem using LOAD_WITH_ALTERED_SEARCH_PATH.
---
dlls/user32/hook.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/user32/hook.c b/dlls/user32/hook.c
index b6dc8e8..ae4c5f1 100644
--- a/dlls/user32/hook.c
+++ b/dlls/user32/hook.c
@@ -322,7 +322,7 @@ void *get_hook_proc( void *proc, const WCHAR *module )
{
TRACE( "loading %s\n", debugstr_w(module) );
/* FIXME: the library will never be freed */
- if (!(mod = LoadLibraryW(module))) return NULL;
+ if (!(mod = LoadLibraryExW(module, NULL, LOAD_WITH_ALTERED_SEARCH_PATH))) return NULL;
}
return (char *)mod + (ULONG_PTR)proc;
}
More information about the wine-cvs
mailing list