Commit 54e8ecf1 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

dbghelp: Check for wImageName being NULL (Coverity).

parent fdbe3d18
......@@ -543,7 +543,7 @@ DWORD64 WINAPI SymLoadModuleExW(HANDLE hProcess, HANDLE hFile, PCWSTR wImageNam
if (!(module = pe_load_native_module(pcs, wImageName, hFile, BaseOfDll, SizeOfDll)))
{
/* and finally and ELF module */
if (module_get_type_by_name(wImageName) == DMT_ELF)
if (wImageName && (module_get_type_by_name(wImageName) == DMT_ELF))
module = elf_load_module(pcs, wImageName, BaseOfDll);
}
}
......
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