From cc9baf364edb7c8def73c8a6bd33cbd632660cfc Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Thu, 1 Jun 2006 20:24:42 +0100 Subject: [PATCH] rpcrt4: Don't send the unused part of the allocated buffer. --- dlls/rpcrt4/ndr_midl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/rpcrt4/ndr_midl.c b/dlls/rpcrt4/ndr_midl.c index 3ac0aedb73..90f8b5e3e4 100644 --- a/dlls/rpcrt4/ndr_midl.c +++ b/dlls/rpcrt4/ndr_midl.c @@ -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); -- 2.32.0.93.g670b81a890