Module: wine Branch: master Commit: 262e1bfa92be437e0e8c4969ce818c5c1303fd0d URL: http://source.winehq.org/git/wine.git/?a=commit;h=262e1bfa92be437e0e8c4969ce...
Author: Dylan Smith dylan.ah.smith@gmail.com Date: Wed Aug 26 14:18:16 2009 -0400
winedbg: Resolve typedefs when checking for user defined type.
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(-)
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))