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.
This commit is contained in:
Dylan Smith 2009-08-26 14:18:16 -04:00 committed by Alexandre Julliard
parent fe8f6b8068
commit 262e1bfa92
1 changed files with 1 additions and 2 deletions

View File

@ -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))