Return ERROR_DISK_FULL for WriteFile.
This commit is contained in:
parent
e8c552e07b
commit
8f3c0a375e
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue