winedump: Fix null pointer dereference in spec mode.

This commit is contained in:
Tillmann Werner 2010-01-05 22:20:44 +01:00 committed by Alexandre Julliard
parent 5e39af2683
commit 29e58e30f1
1 changed files with 3 additions and 5 deletions

View File

@ -1631,11 +1631,9 @@ int dll_open (const char *dll_name)
*/
int dll_next_symbol (parsed_symbol * sym)
{
if (!dll_current_symbol->symbol)
return 1;
assert (dll_symbols);
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++;