mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-15 22:37:17 +00:00
dbghelp: Set constants lexical parent to module when no compiland is present.
Especially needed for enumeration's values. Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
This commit is contained in:
parent
9cb69964d6
commit
fe52589cdd
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue