Commit 944edd50 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

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

parent eaae51b1
......@@ -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 +
......
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