Use ENOMEDIUM errno code only when defined.

This commit is contained in:
Gerald Pfeifer 2002-04-02 19:19:49 +00:00 committed by Alexandre Julliard
parent 59d9dd3910
commit 4e589cd171
1 changed files with 2 additions and 0 deletions

View File

@ -110,7 +110,9 @@ static DWORD CDROM_GetStatusCode(int io)
switch (errno)
{
case EIO:
#ifdef ENOMEDIUM
case ENOMEDIUM:
#endif
return STATUS_NO_MEDIA_IN_DEVICE;
}
FIXME("Unmapped error code %d: %s\n", errno, strerror(errno));