Return ERROR_DISK_FULL for WriteFile.

This commit is contained in:
Gerard Patel 1999-06-27 15:26:37 +00:00 committed by Alexandre Julliard
parent e8c552e07b
commit 8f3c0a375e
1 changed files with 3 additions and 0 deletions

View File

@ -1144,6 +1144,9 @@ BOOL WINAPI WriteFile( HANDLE hFile, LPCVOID buffer, DWORD bytesToWrite,
{
if ((errno == EAGAIN) || (errno == EINTR)) continue;
if ((errno == EFAULT) && VIRTUAL_HandleFault( buffer )) continue;
if (errno == ENOSPC)
SetLastError( ERROR_DISK_FULL );
else
FILE_SetDosError();
break;
}