Commit f69c1501 authored by Gerard Patel's avatar Gerard Patel Committed by Alexandre Julliard

Revert the test for Virtual_HandleFault in ReadFile/WriteFile.

parent d7cbd7b0
...@@ -1162,7 +1162,7 @@ BOOL WINAPI ReadFile( HANDLE hFile, LPVOID buffer, DWORD bytesToRead, ...@@ -1162,7 +1162,7 @@ BOOL WINAPI ReadFile( HANDLE hFile, LPVOID buffer, DWORD bytesToRead,
while ((result = read( unix_handle, buffer, bytesToRead )) == -1) while ((result = read( unix_handle, buffer, bytesToRead )) == -1)
{ {
if ((errno == EAGAIN) || (errno == EINTR)) continue; if ((errno == EAGAIN) || (errno == EINTR)) continue;
if ((errno == EFAULT) && VIRTUAL_HandleFault( buffer )) continue; if ((errno == EFAULT) && !VIRTUAL_HandleFault( buffer )) continue;
FILE_SetDosError(); FILE_SetDosError();
break; break;
} }
...@@ -1198,7 +1198,7 @@ BOOL WINAPI WriteFile( HANDLE hFile, LPCVOID buffer, DWORD bytesToWrite, ...@@ -1198,7 +1198,7 @@ BOOL WINAPI WriteFile( HANDLE hFile, LPCVOID buffer, DWORD bytesToWrite,
while ((result = write( unix_handle, buffer, bytesToWrite )) == -1) while ((result = write( unix_handle, buffer, bytesToWrite )) == -1)
{ {
if ((errno == EAGAIN) || (errno == EINTR)) continue; if ((errno == EAGAIN) || (errno == EINTR)) continue;
if ((errno == EFAULT) && VIRTUAL_HandleFault( buffer )) continue; if ((errno == EFAULT) && !VIRTUAL_HandleFault( buffer )) continue;
if (errno == ENOSPC) if (errno == ENOSPC)
SetLastError( ERROR_DISK_FULL ); SetLastError( ERROR_DISK_FULL );
else else
......
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