From 76f4b9b053bbf68676a53046937ffefebaa9dfd3 Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Fri, 6 Feb 2009 15:28:55 -0800 Subject: [PATCH] rpcrt4: Don't abort reading from a pipe if a single read is short. --- dlls/rpcrt4/rpc_transport.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/rpcrt4/rpc_transport.c b/dlls/rpcrt4/rpc_transport.c index 1e759a65255..367ca357715 100644 --- a/dlls/rpcrt4/rpc_transport.c +++ b/dlls/rpcrt4/rpc_transport.c @@ -382,6 +382,8 @@ static int rpcrt4_conn_np_read(RpcConnection *Connection, { DWORD bytes_read; ret = ReadFile(npc->pipe, buf, bytes_left, &bytes_read, NULL); + if (!ret && GetLastError() == ERROR_MORE_DATA) + ret = TRUE; if (!ret || !bytes_read) break; bytes_left -= bytes_read;