Juan Lang : rpcrt4: Don' t abort reading from a pipe if a single read is short.

Alexandre Julliard julliard at winehq.org
Mon Feb 9 10:29:23 CST 2009


Module: wine
Branch: master
Commit: 76f4b9b053bbf68676a53046937ffefebaa9dfd3
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=76f4b9b053bbf68676a53046937ffefebaa9dfd3

Author: Juan Lang <juan.lang at gmail.com>
Date:   Fri Feb  6 15:28:55 2009 -0800

rpcrt4: Don't abort reading from a pipe if a single read is short.

---

 dlls/rpcrt4/rpc_transport.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/rpcrt4/rpc_transport.c b/dlls/rpcrt4/rpc_transport.c
index 1e759a6..367ca35 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;




More information about the wine-cvs mailing list