rpcrt4: Don't send the unused part of the allocated buffer.

This commit is contained in:
Robert Shearman 2006-06-01 20:24:42 +01:00 committed by Alexandre Julliard
parent 11da87d098
commit cc9baf364e
1 changed files with 1 additions and 0 deletions

View File

@ -309,6 +309,7 @@ unsigned char *WINAPI NdrSendReceive( MIDL_STUB_MESSAGE *stubmsg, unsigned char
return NULL;
}
stubmsg->RpcMsg->BufferLength = buffer - (unsigned char *)stubmsg->RpcMsg->Buffer;
status = I_RpcSendReceive(stubmsg->RpcMsg);
if (status != RPC_S_OK)
RpcRaiseException(status);