Added mapping for errno ENOMEDIUM to STATUS_NO_MEDIA_IN_DEVICE.

This commit is contained in:
Andreas Mohr 2002-03-29 17:57:43 +00:00 committed by Alexandre Julliard
parent 85cacd8fe9
commit 66c72d0bf3
1 changed files with 3 additions and 1 deletions

View File

@ -109,7 +109,9 @@ static DWORD CDROM_GetStatusCode(int io)
if (io == 0) return 0;
switch (errno)
{
case EIO: return STATUS_NO_MEDIA_IN_DEVICE;
case EIO:
case ENOMEDIUM:
return STATUS_NO_MEDIA_IN_DEVICE;
}
FIXME("Unmapped error code %d: %s\n", errno, strerror(errno));
return STATUS_IO_DEVICE_ERROR;