rpcrt4: Add a comment in NdrSendReceive explaining why we change the BufferLength.
This commit is contained in:
parent
c94a142eb1
commit
456326281d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue