Commit 55506360 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

Return DISP_E_EXCEPTION from ITypeInfo_Invoke on an error in the

called function.
parent 6bfae1a1
......@@ -4983,6 +4983,12 @@ static HRESULT WINAPI ITypeInfo_fnInvoke(
}
}
}
if ((func_desc->elemdescFunc.tdesc.vt == VT_HRESULT) && FAILED(res)) {
WARN("invoked function failed with error 0x%08lx\n", res);
hres = DISP_E_EXCEPTION;
if (pExcepInfo) pExcepInfo->scode = res;
}
func_fail:
HeapFree(GetProcessHeap(), 0, rgvarg);
HeapFree(GetProcessHeap(),0,args2);
......
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