mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
vgmplay: Coverity 183775 (buffer overflow and nonsensical code)
This commit is contained in:
parent
33e8282773
commit
8b1377dadf
@ -1329,7 +1329,7 @@ void vgmplay_device::execute_run()
|
||||
uint8_t id = m_file->read_byte(m_pc + 1);
|
||||
if (id == 0xff)
|
||||
for (int i = 0; i < 0xff; i++)
|
||||
m_streams[id].timer->enable(false);
|
||||
m_streams[i].timer->enable(false);
|
||||
else
|
||||
m_streams[id].timer->enable(false);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user