1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 03:45:57 +00:00

winedump: Don't crash when dumping .dbg files.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
This commit is contained in:
Eric Pouech 2022-11-28 16:03:57 +01:00 committed by Alexandre Julliard
parent eaae51b11c
commit 944edd5068

View File

@ -468,7 +468,7 @@ static void dump_sections(const void *base, const void* addr, unsigned num_sect)
unsigned i;
const char* strtable;
if (PE_nt_headers->FileHeader.PointerToSymbolTable && PE_nt_headers->FileHeader.NumberOfSymbols)
if (PE_nt_headers && PE_nt_headers->FileHeader.PointerToSymbolTable && PE_nt_headers->FileHeader.NumberOfSymbols)
{
strtable = (const char*)base +
PE_nt_headers->FileHeader.PointerToSymbolTable +