rpcrt4: Add a comment in NdrSendReceive explaining why we change the BufferLength.

This commit is contained in:
Rob Shearman 2008-07-01 08:08:55 +01:00 committed by Alexandre Julliard
parent c94a142eb1
commit 456326281d
1 changed files with 1 additions and 0 deletions

View File

@ -209,6 +209,7 @@ unsigned char *WINAPI NdrSendReceive( PMIDL_STUB_MESSAGE stubmsg, unsigned char
return NULL;
}
/* avoid sending uninitialised parts of the buffer on the wire */
stubmsg->RpcMsg->BufferLength = buffer - (unsigned char *)stubmsg->RpcMsg->Buffer;
status = I_RpcSendReceive(stubmsg->RpcMsg);
if (status != RPC_S_OK)