Bug 150157: DosWrite is not returning an error when the disk is full.

We can tell the write failed if we did a partial write.  The patch is
contributed by Michael Kaply <mkaply@us.ibm.com>.
This commit is contained in:
wtc%netscape.com 2002-06-22 14:39:43 +00:00
Родитель 8c3407541b
Коммит f2fcf1e468
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -253,6 +253,12 @@ _PR_MD_WRITE(PRFileDesc *fd, const void *buf, PRInt32 len)
return -1;
}
if (len != bytes) {
rv = ERROR_DISK_FULL;
_PR_MD_MAP_WRITE_ERROR(rv);
return -1;
}
return bytes;
} /* --- end _PR_MD_WRITE() --- */