ole32: If IRpcStubBuffer_Invoke fails, we should raise an exception to

tell the RPC runtime that the call failed.
This commit is contained in:
Robert Shearman 2006-06-09 17:25:26 +01:00 committed by Alexandre Julliard
parent 3d4e9d6a71
commit c60c28cf08
1 changed files with 5 additions and 0 deletions

View File

@ -569,9 +569,14 @@ static void __RPC_STUB dispatch_rpc(RPC_MESSAGE *msg)
}
}
hr = params->hr;
HeapFree(GetProcessHeap(), 0, params);
apartment_release(apt);
/* if IRpcStubBuffer_Invoke fails, we should raise an exception to tell
* the RPC runtime that the call failed */
if (hr) RpcRaiseException(hr);
}
/* stub registration */