From fe52589cdd520ef77d6251995cfc0d490167cd07 Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Tue, 12 Jul 2022 09:28:57 +0200 Subject: [PATCH] dbghelp: Set constants lexical parent to module when no compiland is present. Especially needed for enumeration's values. Signed-off-by: Eric Pouech --- dlls/dbghelp/symbol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/dbghelp/symbol.c b/dlls/dbghelp/symbol.c index 4bf0bbae74a..abf6054d0ee 100644 --- a/dlls/dbghelp/symbol.c +++ b/dlls/dbghelp/symbol.c @@ -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);