Eric Pouech : dbghelp: In const types, force 'void' type when none is found .

Alexandre Julliard julliard at winehq.org
Mon Mar 28 14:21:59 CDT 2011


Module: wine
Branch: master
Commit: 6a60266575ebdc501e533f9c814364746c6ef2a5
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6a60266575ebdc501e533f9c814364746c6ef2a5

Author: Eric Pouech <eric.pouech at orange.fr>
Date:   Sat Mar 26 12:16:45 2011 +0100

dbghelp: In const types, force 'void' type when none is 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 f0eabaf..1f8d4a7 100644
--- a/dlls/dbghelp/dwarf.c
+++ b/dlls/dbghelp/dwarf.c
@@ -1317,9 +1317,13 @@ static struct symt* dwarf2_parse_volatile_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