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

Alexandre Julliard julliard at winehq.org
Tue Jul 1 08:27:42 CDT 2008


Module: wine
Branch: master
Commit: 456326281d3da078e2e804d305ea1cc59c60bcd8
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=456326281d3da078e2e804d305ea1cc59c60bcd8

Author: Rob Shearman <robertshearman at gmail.com>
Date:   Tue Jul  1 08:08:55 2008 +0100

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

---

 dlls/rpcrt4/ndr_clientserver.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/rpcrt4/ndr_clientserver.c b/dlls/rpcrt4/ndr_clientserver.c
index 9af736a..968ea61 100644
--- a/dlls/rpcrt4/ndr_clientserver.c
+++ b/dlls/rpcrt4/ndr_clientserver.c
@@ -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)




More information about the wine-cvs mailing list