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

This commit is contained in:
Juan Lang 2009-02-06 15:28:55 -08:00 committed by Alexandre Julliard
parent c7d65aa7e1
commit 76f4b9b053

View file

@ -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;