diff --git a/dlls/dbghelp/symbol.c b/dlls/dbghelp/symbol.c index 06072782046..b399b667c85 100644 --- a/dlls/dbghelp/symbol.c +++ b/dlls/dbghelp/symbol.c @@ -476,7 +476,7 @@ struct symt_data* symt_add_func_local(struct module* module, locsym->hash_elt.name = pool_strdup(&module->pool, name); locsym->hash_elt.next = NULL; locsym->kind = dt; - locsym->container = &block->symt; + locsym->container = block ? &block->symt : &func->symt; locsym->type = type; locsym->u.var = *loc; if (block)