Commit dbe0610b authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

winedbg: Fix printing function signature type for circular references on return type.

parent 51a9b227
......@@ -676,8 +676,16 @@ int types_print_type(const struct dbg_type* type, BOOL details)
break;
case SymTagFunctionType:
types_get_info(type, TI_GET_TYPE, &subtype.id);
subtype.module = type->module;
types_print_type(&subtype, FALSE);
/* is the returned type the same object as function sig itself ? */
if (subtype.id != type->id)
{
subtype.module = type->module;
types_print_type(&subtype, FALSE);
}
else
{
dbg_printf("<ret_type=self>");
}
dbg_printf(" (*%s)(", name);
if (types_get_info(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