Eric Pouech : dbghelp: Set constants lexical parent to module when no compiland is present.
Alexandre Julliard
julliard at winehq.org
Tue Jul 12 16:45:37 CDT 2022
Module: wine
Branch: master
Commit: fe52589cdd520ef77d6251995cfc0d490167cd07
URL: https://gitlab.winehq.org/wine/wine/-/commit/fe52589cdd520ef77d6251995cfc0d490167cd07
Author: Eric Pouech <eric.pouech at gmail.com>
Date: Tue Jul 12 09:28:57 2022 +0200
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 at gmail.com>
---
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);
More information about the wine-cvs
mailing list