Skip to content

Commit

Permalink
Merge pull request #4494 from QianNangong/cdrom-crash
Browse files Browse the repository at this point in the history
Fix an assertion when reboot in guest os if mount a directory as CD-ROM before `boot`
  • Loading branch information
joncampbell123 authored Sep 26, 2023
2 parents 7ff3583 + 1175401 commit 841d684
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dos/dos_programs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2591,6 +2591,7 @@ class BOOT : public Program {
imageDisk *imagedrv = new imageDisk(Drives[drv], drv, (convertro || Drives[drv]->readonly || (od && od->ovlreadonly)) ? 0 : freeMB, timeout);
if (imagedrv && imagedrv->ffdd) {
imageDiskList[nextdrv] = imagedrv;
imagedrv->Addref();
bool ide_slave = false;
signed char ide_index = -1;
IDE_Auto(ide_index,ide_slave);
Expand Down

0 comments on commit 841d684

Please sign in to comment.