Commit fe52589c authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

dbghelp: Set constants lexical parent to module when no compiland is present.

Especially needed for enumeration's values. Signed-off-by: 's avatarEric Pouech <eric.pouech@gmail.com>
parent 9cb69964
...@@ -662,7 +662,7 @@ struct symt_data* symt_new_constant(struct module* module, ...@@ -662,7 +662,7 @@ struct symt_data* symt_new_constant(struct module* module,
sym->symt.tag = SymTagData; sym->symt.tag = SymTagData;
sym->hash_elt.name = pool_strdup(&module->pool, name); sym->hash_elt.name = pool_strdup(&module->pool, name);
sym->kind = DataIsConstant; sym->kind = DataIsConstant;
sym->container = compiland ? &compiland->symt : NULL; sym->container = compiland ? &compiland->symt : &module->top->symt;
sym->type = type; sym->type = type;
sym->u.value = *v; sym->u.value = *v;
symt_add_module_ht(module, (struct symt_ht*)sym); symt_add_module_ht(module, (struct symt_ht*)sym);
......
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