mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
oleaut32: We always pass in an IRpcChannelBuffer to IRpcStubBuffer::Invoke now,
so remove the case for it being NULL.
This commit is contained in:
parent
c60c28cf08
commit
70c34ccc47
@ -1820,23 +1820,9 @@ TMStubImpl_Invoke(
|
||||
HeapFree(GetProcessHeap(), 0, args);
|
||||
|
||||
xmsg->cbBuffer = buf.curoff;
|
||||
if (rpcchanbuf)
|
||||
{
|
||||
hres = IRpcChannelBuffer_GetBuffer(rpcchanbuf, xmsg, &This->iid);
|
||||
if (hres != S_OK)
|
||||
ERR("IRpcChannelBuffer_GetBuffer failed with error 0x%08lx\n", hres);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* FIXME: remove this case when we start sending an IRpcChannelBuffer
|
||||
* object with builtin OLE */
|
||||
RPC_STATUS status = I_RpcGetBuffer((RPC_MESSAGE *)xmsg);
|
||||
if (status != RPC_S_OK)
|
||||
{
|
||||
ERR("I_RpcGetBuffer failed with error %ld\n", status);
|
||||
hres = E_FAIL;
|
||||
}
|
||||
}
|
||||
hres = IRpcChannelBuffer_GetBuffer(rpcchanbuf, xmsg, &This->iid);
|
||||
if (hres != S_OK)
|
||||
ERR("IRpcChannelBuffer_GetBuffer failed with error 0x%08lx\n", hres);
|
||||
|
||||
if (hres == S_OK)
|
||||
memcpy(xmsg->Buffer, buf.base, buf.curoff);
|
||||
|
Loading…
Reference in New Issue
Block a user