rpcrt4: Don't send the unused part of the allocated buffer.
This commit is contained in:
parent
11da87d098
commit
cc9baf364e
|
@ -309,6 +309,7 @@ unsigned char *WINAPI NdrSendReceive( MIDL_STUB_MESSAGE *stubmsg, unsigned char
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stubmsg->RpcMsg->BufferLength = buffer - (unsigned char *)stubmsg->RpcMsg->Buffer;
|
||||||
status = I_RpcSendReceive(stubmsg->RpcMsg);
|
status = I_RpcSendReceive(stubmsg->RpcMsg);
|
||||||
if (status != RPC_S_OK)
|
if (status != RPC_S_OK)
|
||||||
RpcRaiseException(status);
|
RpcRaiseException(status);
|
||||||
|
|
Loading…
Reference in New Issue