From c60c28cf0831d68ff257a7d93c540a1feb658383 Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Fri, 9 Jun 2006 17:25:26 +0100 Subject: [PATCH] ole32: If IRpcStubBuffer_Invoke fails, we should raise an exception to tell the RPC runtime that the call failed. --- dlls/ole32/rpc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/ole32/rpc.c b/dlls/ole32/rpc.c index 3617e507400..e30989d2c88 100644 --- a/dlls/ole32/rpc.c +++ b/dlls/ole32/rpc.c @@ -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 */