Commit 5e56bc3b authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

dbghelp: Fix potential crash when loading a builtin PE module embedded in an ELF image.

Regression introduced by ced12a1a. Signed-off-by: 's avatarEric Pouech <eric.pouech@gmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 064dd051
......@@ -990,7 +990,7 @@ DWORD64 WINAPI SymLoadModuleExW(HANDLE hProcess, HANDLE hFile, PCWSTR wImageNam
module_remove(pcs, altmodule);
}
if ((dbghelp_options & SYMOPT_DEFERRED_LOADS) == 0)
if ((dbghelp_options & SYMOPT_DEFERRED_LOADS) == 0 && !module_get_container(pcs, module))
module_load_debug(module);
return module->module.BaseOfImage;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment