Dan Hipschman : rpcrt4: Use correct count in rpcrt4_conn_np_write.
julliard at winehq.org
Thu Mar 20 09:48:18 CDT 2008
Author: Dan Hipschman <dsh at linux.ucla.edu>
Date: Wed Mar 19 15:03:00 2008 -0700
rpcrt4: Use correct count in rpcrt4_conn_np_write.
count is the total count passed into rpcrt4_conn_np_write. If WriteFile
does a partial write it would end up writing too much subsequent times
through the loop. All tests pass as before.
dlls/rpcrt4/rpc_transport.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/rpcrt4/rpc_transport.c b/dlls/rpcrt4/rpc_transport.c
index b02c11d..822807b 100644
@@ -392,7 +392,7 @@ static int rpcrt4_conn_np_write(RpcConnection *Connection,
- ret = WriteFile(npc->pipe, buf, count, &bytes_written, NULL);
+ ret = WriteFile(npc->pipe, buf, bytes_left, &bytes_written, NULL);
if (!ret || !bytes_written)
bytes_left -= bytes_written;
More information about the wine-cvs