From 66c72d0bf303d1e76517ed39e714397d5365114c Mon Sep 17 00:00:00 2001 From: Andreas Mohr Date: Fri, 29 Mar 2002 17:57:43 +0000 Subject: [PATCH] Added mapping for errno ENOMEDIUM to STATUS_NO_MEDIA_IN_DEVICE. --- dlls/ntdll/cdrom.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/ntdll/cdrom.c b/dlls/ntdll/cdrom.c index e6fb3bb7171..e96ba5506e6 100644 --- a/dlls/ntdll/cdrom.c +++ b/dlls/ntdll/cdrom.c @@ -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;