summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author smf- <smf-@users.noreply.github.com>2018-09-20 18:22:25 +0100
committer smf- <smf-@users.noreply.github.com>2018-09-20 18:23:06 +0100
commitee4b6da096f1c7c9ec7e92f95abbf42ad9331c70 (patch)
treeaaef7a0707e5900f91ad2a4f2ad171ee74118cc2
parent47ed7d9b1369e2293413d88e224e16bd9990d169 (diff)
vgmplay: fixed off by one error that caused a bogus error to be flagged up [smf]
-rw-r--r--src/mame/drivers/vgmplay.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/drivers/vgmplay.cpp b/src/mame/drivers/vgmplay.cpp
index af84a06707b..0b9a13937bf 100644
--- a/src/mame/drivers/vgmplay.cpp
+++ b/src/mame/drivers/vgmplay.cpp
@@ -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)
{