CDROM: Prevent successful seeking to the lead-out area of the disc

This commit is contained in:
Connor McLaughlin 2020-05-08 15:41:41 +10:00
parent c3c8df14ea
commit 684e83168e
1 changed files with 6 additions and 0 deletions

View File

@ -1310,6 +1310,12 @@ void CDROM::DoSeekComplete(TickCount ticks_late)
seek_okay = false;
}
}
if (subq.track_number_bcd == CDImage::LEAD_OUT_TRACK_NUMBER)
{
Log_WarningPrintf("Invalid seek to lead-out area (LBA %u)", m_reader.GetLastReadSector());
seek_okay = false;
}
}
}
}