mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
vgmplay: fixed off by one error that caused a bogus error to be flagged up [smf]
This commit is contained in:
parent
47ed7d9b13
commit
ee4b6da096
@ -825,7 +825,7 @@ uint32_t vgmplay_device::handle_pcm_write(uint32_t address)
|
||||
int second = (type & 0x80) ? 1 : 0;
|
||||
type &= 0x7f;
|
||||
|
||||
if (m_data_streams.size() <= type || m_data_streams[type].size() <= src + size)
|
||||
if (m_data_streams.size() <= type || m_data_streams[type].size() < src + size)
|
||||
osd_printf_error("invalid pcm ram writes src %x dst %x size %x type %02x\n", src, dst, size, type);
|
||||
else if (type == 0x01 && !second)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user