Robert Shearman : rpcrt4: Don'
t send the unused part of the allocated buffer.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Jun 2 04:55:50 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: cc9baf364edb7c8def73c8a6bd33cbd632660cfc
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=cc9baf364edb7c8def73c8a6bd33cbd632660cfc
Author: Robert Shearman <rob at codeweavers.com>
Date: Thu Jun 1 20:24:42 2006 +0100
rpcrt4: Don't send the unused part of the allocated buffer.
---
dlls/rpcrt4/ndr_midl.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/rpcrt4/ndr_midl.c b/dlls/rpcrt4/ndr_midl.c
index 3ac0aed..90f8b5e 100644
--- a/dlls/rpcrt4/ndr_midl.c
+++ b/dlls/rpcrt4/ndr_midl.c
@@ -309,6 +309,7 @@ unsigned char *WINAPI NdrSendReceive( MI
return NULL;
}
+ stubmsg->RpcMsg->BufferLength = buffer - (unsigned char *)stubmsg->RpcMsg->Buffer;
status = I_RpcSendReceive(stubmsg->RpcMsg);
if (status != RPC_S_OK)
RpcRaiseException(status);
More information about the wine-cvs
mailing list