Commit 76f4b9b0 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

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

parent c7d65aa7
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment