Skip to content
Snippets Groups Projects
Commit 8f3c0a37 authored by Gerard Patel's avatar Gerard Patel Committed by Alexandre Julliard
Browse files

Return ERROR_DISK_FULL for WriteFile.

parent e8c552e0
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment