1
0
mirror of https://github.com/simh/simh.git synced 2026-01-11 23:52:58 +00:00

DISK: Issue message, don't abort when container identifies as a CDROM but isn't

This commit is contained in:
Mark Pizzolato 2023-02-09 12:10:17 -10:00
parent 8f963ac5ae
commit 0d0d4a0525

View File

@ -5037,9 +5037,9 @@ static t_stat sim_os_disk_unload_raw (FILE *f)
if (ioctl ((int)((long)f), CDROM_GET_CAPABILITY, NULL) < 0)
return SCPE_OK;
if (ioctl((int)((long)f), CDROM_LOCKDOOR, 0) < 0)
return SCPE_IOERR;
return sim_messagef (SCPE_OK, "Apparent CDROM can't unlock door: %s\n", strerror (errno));
if (ioctl((int)((long)f), CDROMEJECT) < 0)
return SCPE_IOERR;
return sim_messagef (SCPE_OK, "Apparent CDROM can't eject: %s\n", strerror (errno));
#endif
return SCPE_OK;
}