Eric Pouech : dbghelp: Force void type in const declaration, when subtype cannot be found.
Alexandre Julliard
julliard at winehq.org
Tue Apr 12 11:07:35 CDT 2011
Module: wine
Branch: master
Commit: 8fecef8757c7b6b794ad2e0ec5a2303fa8ef764b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8fecef8757c7b6b794ad2e0ec5a2303fa8ef764b
Author: Eric Pouech <eric.pouech at orange.fr>
Date: Mon Apr 11 20:47:05 2011 +0200
dbghelp: Force void type in const declaration, when subtype cannot be found.
---
dlls/dbghelp/dwarf.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/dlls/dbghelp/dwarf.c b/dlls/dbghelp/dwarf.c
index 1f8d4a7..5b2cb01 100644
--- a/dlls/dbghelp/dwarf.c
+++ b/dlls/dbghelp/dwarf.c
@@ -1301,9 +1301,13 @@ static struct symt* dwarf2_parse_const_type(dwarf2_parse_context_t* ctx,
if (di->symt) return di->symt;
- TRACE("%s, for %s\n", dwarf2_debug_ctx(ctx), dwarf2_debug_di(di));
+ TRACE("%s, for %s\n", dwarf2_debug_ctx(ctx), dwarf2_debug_di(di));
- ref_type = dwarf2_lookup_type(ctx, di);
+ if (!(ref_type = dwarf2_lookup_type(ctx, di)))
+ {
+ ref_type = ctx->symt_cache[sc_void];
+ assert(ref_type);
+ }
if (dwarf2_get_di_children(ctx, di)) FIXME("Unsupported children\n");
di->symt = ref_type;
More information about the wine-cvs
mailing list