Revert the test for Virtual_HandleFault in ReadFile/WriteFile.
diff --git a/files/file.c b/files/file.c
index 0038b35..14c5e6d 100644
--- a/files/file.c
+++ b/files/file.c
@@ -1162,7 +1162,7 @@
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 @@
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