1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-09 04:16:08 +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:
Eric Pouech 2022-07-12 09:28:57 +02:00 committed by Alexandre Julliard
parent 9cb69964d6
commit fe52589cdd

View File

@ -662,7 +662,7 @@ struct symt_data* symt_new_constant(struct module* module,
sym->symt.tag = SymTagData;
sym->hash_elt.name = pool_strdup(&module->pool, name);
sym->kind = DataIsConstant;
sym->container = compiland ? &compiland->symt : NULL;
sym->container = compiland ? &compiland->symt : &module->top->symt;
sym->type = type;
sym->u.value = *v;
symt_add_module_ht(module, (struct symt_ht*)sym);