Fix iterator-past-end-of-container Coverity warning
This commit is contained in:
parent
eef8c51419
commit
a6251d7e9f
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue