Commit 262e1bfa authored by Dylan Smith's avatar Dylan Smith Committed by Alexandre Julliard

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.
parent fe8f6b80
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment