dbghelp: Don't crash when parsing the forward declaration of a function.

This commit is contained in:
Eric Pouech 2008-05-25 19:29:58 +02:00 committed by Alexandre Julliard
parent 34c0bd760f
commit 1a34d70354
1 changed files with 1 additions and 1 deletions

View File

@ -1679,7 +1679,7 @@ static struct symt* dwarf2_parse_subprogram(dwarf2_parse_context_t* ctx,
symt_add_function_point(ctx->module, subpgm.func, SymTagCustom,
&subpgm.frame, NULL);
}
symt_normalize_function(subpgm.ctx->module, subpgm.func);
if (subpgm.func) symt_normalize_function(subpgm.ctx->module, subpgm.func);
return di->symt;
}