Eric Pouech : dbghelp: Always search current directory when loading PE modules.
Module: wine Branch: master Commit: 8e8243a30899273071b35eb86eff487e2d5763dd URL: https://source.winehq.org/git/wine.git/?a=commit;h=8e8243a30899273071b35eb86... Author: Eric Pouech <eric.pouech(a)gmail.com> Date: Tue Nov 16 17:47:02 2021 +0100 dbghelp: Always search current directory when loading PE modules. Signed-off-by: Eric Pouech <eric.pouech(a)gmail.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/dbghelp/pe_module.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/dbghelp/pe_module.c b/dlls/dbghelp/pe_module.c index 35db3edf40f..77ae122901a 100644 --- a/dlls/dbghelp/pe_module.c +++ b/dlls/dbghelp/pe_module.c @@ -791,7 +791,8 @@ struct module* pe_load_native_module(struct process* pcs, const WCHAR* name, { assert(name); - if ((hFile = FindExecutableImageExW(name, pcs->search_path, loaded_name, NULL, NULL)) == NULL) + if ((hFile = FindExecutableImageExW(name, pcs->search_path, loaded_name, NULL, NULL)) == NULL && + (hFile = FindExecutableImageExW(name, L".", loaded_name, NULL, NULL)) == NULL) return NULL; opened = TRUE; }
participants (1)
-
Alexandre Julliard