mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 09:35:52 +00:00
winedump: Don't crash when dumping .dbg files.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
This commit is contained in:
parent
eaae51b11c
commit
944edd5068
|
@ -468,7 +468,7 @@ static void dump_sections(const void *base, const void* addr, unsigned num_sect)
|
||||||
unsigned i;
|
unsigned i;
|
||||||
const char* strtable;
|
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 +
|
strtable = (const char*)base +
|
||||||
PE_nt_headers->FileHeader.PointerToSymbolTable +
|
PE_nt_headers->FileHeader.PointerToSymbolTable +
|
||||||
|
|
Loading…
Reference in a new issue