1
0
mirror of https://github.com/simh/simh.git synced 2026-05-17 10:27:45 +00:00

DISK: Make sure RAW device unload actually detaches from unit

This commit is contained in:
Mark Pizzolato
2023-04-30 15:14:54 -10:00
parent bc5dcedf1d
commit d0a1b135a7
2 changed files with 4 additions and 1 deletions

View File

@@ -1158,7 +1158,8 @@ switch (DK_GET_FMT (uptr)) { /* case on format */
return sim_disk_detach (uptr);
case DKUF_F_RAW: /* Raw Physical Disk Access */
ctx->media_removed = 1;
return sim_os_disk_unload_raw (uptr->fileref); /* remove/eject disk */
sim_os_disk_unload_raw (uptr->fileref); /* remove/eject disk */
return sim_disk_detach (uptr);
break;
default:
return SCPE_NOFNC;