Commit 66c72d0b authored by Andreas Mohr's avatar Andreas Mohr Committed by Alexandre Julliard

Added mapping for errno ENOMEDIUM to STATUS_NO_MEDIA_IN_DEVICE.

parent 85cacd8f
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment