Jacek Caban jacek@codeweavers.com writes:
@@ -448,6 +448,7 @@ static int rpcrt4_conn_np_read(RpcConnection *Connection, char *buf = buffer; BOOL ret = TRUE; unsigned int bytes_left = count;
DWORD err = GetLastError();
while (bytes_left) {
@@ -460,6 +461,7 @@ static int rpcrt4_conn_np_read(RpcConnection *Connection, bytes_left -= bytes_read; buf += bytes_read; }
- if (ret) SetLastError(err);
I'd suggest using NtReadFile instead.