From f69c1501a88b30aaadbd30899e1ec8e60bd07a4d Mon Sep 17 00:00:00 2001 From: Gerard Patel Date: Sun, 7 May 2000 18:26:19 +0000 Subject: [PATCH] Revert the test for Virtual_HandleFault in ReadFile/WriteFile. --- files/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/file.c b/files/file.c index 0038b356d6a..14c5e6da38b 100644 --- a/files/file.c +++ b/files/file.c @@ -1162,7 +1162,7 @@ BOOL WINAPI ReadFile( HANDLE hFile, LPVOID buffer, DWORD bytesToRead, while ((result = read( unix_handle, buffer, bytesToRead )) == -1) { if ((errno == EAGAIN) || (errno == EINTR)) continue; - if ((errno == EFAULT) && VIRTUAL_HandleFault( buffer )) continue; + if ((errno == EFAULT) && !VIRTUAL_HandleFault( buffer )) continue; FILE_SetDosError(); break; } @@ -1198,7 +1198,7 @@ BOOL WINAPI WriteFile( HANDLE hFile, LPCVOID buffer, DWORD bytesToWrite, while ((result = write( unix_handle, buffer, bytesToWrite )) == -1) { if ((errno == EAGAIN) || (errno == EINTR)) continue; - if ((errno == EFAULT) && VIRTUAL_HandleFault( buffer )) continue; + if ((errno == EFAULT) && !VIRTUAL_HandleFault( buffer )) continue; if (errno == ENOSPC) SetLastError( ERROR_DISK_FULL ); else -- 2.11.4.GIT