diff --git a/dlls/dbghelp/dwarf.c b/dlls/dbghelp/dwarf.c index a59999c9e70..00fa0f6fb60 100644 --- a/dlls/dbghelp/dwarf.c +++ b/dlls/dbghelp/dwarf.c @@ -1025,6 +1025,11 @@ static struct symt* dwarf2_lookup_type(dwarf2_parse_context_t* ctx, FIXME("Unable to find back reference to type %lx\n", attr.u.uvalue); return ctx->symt_cache[sc_unknown]; } + if (type == di) + { + FIXME("Reference to itself\n"); + return ctx->symt_cache[sc_unknown]; + } if (!type->symt) { /* load the debug info entity */