Module: wine Branch: refs/heads/master Commit: 3a56eca1c7f67e166f00ecf19d5c8e980114138b URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=3a56eca1c7f67e166f00ecf1...
Author: Huw Davies huw@codeweavers.com Date: Tue Jun 20 14:27:00 2006 +0100
rpcrt4: Don't use a short to hold the packet length, since it can result in premature termination of the send.
---
dlls/rpcrt4/rpc_message.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/rpcrt4/rpc_message.c b/dlls/rpcrt4/rpc_message.c index 06b17d3..fb6187f 100644 --- a/dlls/rpcrt4/rpc_message.c +++ b/dlls/rpcrt4/rpc_message.c @@ -282,7 +282,7 @@ static RPC_STATUS RPCRT4_SendAuth(RpcCon Header->common.flags &= ~RPC_FLG_LAST; while (!(Header->common.flags & RPC_FLG_LAST)) { unsigned char auth_pad_len = AuthLength ? ROUND_UP_AMOUNT(BufferLength, AUTH_ALIGNMENT) : 0; - unsigned short pkt_size = BufferLength + hdr_size + alen + auth_pad_len; + unsigned int pkt_size = BufferLength + hdr_size + alen + auth_pad_len;
/* decide if we need to split the packet into fragments */ if (pkt_size <= Connection->MaxTransmissionSize) {