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

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jun 9 14:39:59 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: c60c28cf0831d68ff257a7d93c540a1feb658383
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=c60c28cf0831d68ff257a7d93c540a1feb658383

Author: Robert Shearman <rob at codeweavers.com>
Date:   Fri Jun  9 17:25:26 2006 +0100

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 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/dlls/ole32/rpc.c b/dlls/ole32/rpc.c
index 3617e50..e30989d 100644
--- a/dlls/ole32/rpc.c
+++ b/dlls/ole32/rpc.c
@@ -569,9 +569,14 @@ static void __RPC_STUB dispatch_rpc(RPC_
         }
     }
 
+    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 */




More information about the wine-cvs mailing list