winedbg: Resolve typedefs when checking for user defined type.

Dylan Smith dylan.ah.smith at gmail.com
Sat Aug 22 23:51:31 CDT 2009


All that matters is that the real type is a user defined type (e.g.
structure, class, or union), so I used types_get_real_type instead of
types_get_info to avoid issues with typedefs.
---
 programs/winedbg/types.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
-------------- next part --------------
diff --git a/programs/winedbg/types.c b/programs/winedbg/types.c
index 9c21bd4..4a14143 100644
--- a/programs/winedbg/types.c
+++ b/programs/winedbg/types.c
@@ -263,8 +263,7 @@ BOOL types_udt_find_element(struct dbg_lvalue* lvalue, const char* name, long in
     char                        tmp[256];
     struct dbg_type             type;
 
-    if (!types_get_info(&lvalue->type, TI_GET_SYMTAG, &tag) ||
-        tag != SymTagUDT)
+    if (!types_get_real_type(&lvalue->type, &tag) || tag != SymTagUDT)
         return FALSE;
 
     if (types_get_info(&lvalue->type, TI_GET_CHILDRENCOUNT, &count))


More information about the wine-patches mailing list