rpcrt4: Use correct count in rpcrt4_conn_np_write.
dsh at linux.ucla.edu
Wed Mar 19 17:03:00 CDT 2008
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-patches