1
0
Fork 0

Fix iterator-past-end-of-container Coverity warning

This commit is contained in:
krcroft 2020-03-03 21:45:31 -08:00 committed by Patryk Obara
parent eef8c51419
commit a6251d7e9f

View file

@ -502,6 +502,7 @@ bool CDROM_Interface_Image::PlayAudioSector(uint64_t start, uint64_t len)
// Guard: sanity check the request beyond what GetTrack already checks
if (len == 0
|| track == tracks.end()
|| !track_file
|| track->attr == 0x40
|| !player.channel