winedump: Fix null pointer dereference in spec mode.
This commit is contained in:
parent
5e39af2683
commit
29e58e30f1
|
@ -1631,11 +1631,9 @@ int dll_open (const char *dll_name)
|
|||
*/
|
||||
int dll_next_symbol (parsed_symbol * sym)
|
||||
{
|
||||
if (!dll_current_symbol->symbol)
|
||||
if (!dll_current_symbol || !dll_current_symbol->symbol)
|
||||
return 1;
|
||||
|
||||
assert (dll_symbols);
|
||||
|
||||
sym->symbol = strdup (dll_current_symbol->symbol);
|
||||
sym->ordinal = dll_current_symbol->ordinal;
|
||||
dll_current_symbol++;
|
||||
|
|
Loading…
Reference in New Issue