mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 05:00:30 +00:00
ole32: Use IRpcChannelBuffer_GetBuffer in the hand-made proxy/stubs
instead of calling I_RpcGetBuffer as IRpcChannelBuffer_GetBuffer does some extra magic.
This commit is contained in:
parent
986027af9f
commit
428c63f586
@ -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(LPRPCSTUBBUFFER iface,
|
||||
/* 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(LPRPCSTUBBUFFER iface,
|
||||
/* out */
|
||||
pMsg->cbBuffer = cIids * sizeof(HRESULT);
|
||||
|
||||
I_RpcGetBuffer((RPC_MESSAGE *)pMsg);
|
||||
IRpcChannelBuffer_GetBuffer(pChannel, pMsg, &IID_IRemUnknown);
|
||||
if (!hr)
|
||||
{
|
||||
buf = pMsg->Buffer;
|
||||
|
Loading…
Reference in New Issue
Block a user