未验证 提交 df822e75 编写于 作者: A Aaron Robinson 提交者: GitHub

Append the function pointer type (#70923)

The issue here was the recursion into PrettyPrintSigWorkerInternal
that would reset the buffer. Now, we pass in a new buffer and append
it when we return.
上级 4abfe7c1
......@@ -788,8 +788,12 @@ static HRESULT PrettyPrintTypeA(
break;
case ELEMENT_TYPE_FNPTR:
IfFailGo(appendStrA(out, "fnptr "));
IfFailGo(PrettyPrintSigWorkerInternal(typePtr, (typeEnd - typePtr), "", out,pIMDI));
{
IfFailGo(appendStrA(out, "fnptr "));
CQuickBytes qbOut;
IfFailGo(PrettyPrintSigWorkerInternal(typePtr, (typeEnd - typePtr), "", &qbOut,pIMDI));
IfFailGo(appendStrA(out, (char *)qbOut.Ptr()));
}
break;
case ELEMENT_TYPE_NATIVE_VALUETYPE_ZAPSIG:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册