Commit 99a5488a authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

dbghelp: Ensure that local variables and parameter actually have a container.

parent 8c7cc491
...@@ -476,7 +476,7 @@ struct symt_data* symt_add_func_local(struct module* module, ...@@ -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.name = pool_strdup(&module->pool, name);
locsym->hash_elt.next = NULL; locsym->hash_elt.next = NULL;
locsym->kind = dt; locsym->kind = dt;
locsym->container = &block->symt; locsym->container = block ? &block->symt : &func->symt;
locsym->type = type; locsym->type = type;
locsym->u.var = *loc; locsym->u.var = *loc;
if (block) if (block)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment