Robert Shearman : ole32: Use IRpcChannelBuffer_GetBuffer in the hand-made proxy/stubs

Alexandre Julliard julliard at wine.codeweavers.com
Sat Aug 26 13:47:42 CDT 2006


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

Author: Robert Shearman <rob at codeweavers.com>
Date:   Sat Aug 26 12:05:13 2006 +0100

ole32: Use IRpcChannelBuffer_GetBuffer in the hand-made proxy/stubs
instead of calling I_RpcGetBuffer as IRpcChannelBuffer_GetBuffer does
some extra magic.

---

 dlls/ole32/oleproxy.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/ole32/oleproxy.c b/dlls/ole32/oleproxy.c
index fddbf54..95327d8 100644
--- a/dlls/ole32/oleproxy.c
+++ b/dlls/ole32/oleproxy.c
@@ -196,7 +196,7 @@ CFStub_Invoke(
 
 	msg->cbBuffer = ststg.cbSize.u.LowPart;
 
-        I_RpcGetBuffer((RPC_MESSAGE *)msg);
+        IRpcChannelBuffer_GetBuffer(chanbuf, msg, &IID_IClassFactory);
         if (hres) return hres;
 
 	seekto.u.LowPart = 0;seekto.u.HighPart = 0;
@@ -546,7 +546,7 @@ static HRESULT WINAPI RemUnkStub_Invoke(
     /* out */
     pMsg->cbBuffer = cIids * sizeof(REMQIRESULT) + sizeof(HRESULT);
 
-    I_RpcGetBuffer((RPC_MESSAGE *)pMsg);
+    IRpcChannelBuffer_GetBuffer(pChannel, pMsg, &IID_IRemUnknown);
 
     buf = pMsg->Buffer;
     *(HRESULT *)buf = hr;
@@ -576,7 +576,7 @@ static HRESULT WINAPI RemUnkStub_Invoke(
     /* out */
     pMsg->cbBuffer = cIids * sizeof(HRESULT);
 
-    I_RpcGetBuffer((RPC_MESSAGE *)pMsg);
+    IRpcChannelBuffer_GetBuffer(pChannel, pMsg, &IID_IRemUnknown);
     if (!hr)
     {
         buf = pMsg->Buffer;




More information about the wine-cvs mailing list