Revert the test for Virtual_HandleFault in ReadFile/WriteFile.

This commit is contained in:
Gerard Patel 2000-05-07 18:26:19 +00:00 committed by Alexandre Julliard
parent d7cbd7b001
commit f69c1501a8
1 changed files with 2 additions and 2 deletions

View File

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