dbghelp: Check for wImageName being NULL (Coverity).

This commit is contained in:
Marcus Meissner 2009-01-31 13:23:35 +01:00 committed by Alexandre Julliard
parent fdbe3d1870
commit 54e8ecf1b0
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}