Return DISP_E_EXCEPTION from ITypeInfo_Invoke on an error in the

called function.
This commit is contained in:
Robert Shearman 2005-07-19 20:00:37 +00:00 committed by Alexandre Julliard
parent 6bfae1a1b7
commit 5550636044
1 changed files with 6 additions and 0 deletions

View File

@ -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);