mirror of
https://github.com/holub/mame
synced 2025-07-04 17:38:08 +03:00
(MESS) x68k, vboy : fixed reported buffer overflow
This commit is contained in:
parent
12ca48c3c1
commit
13ff216364
@ -481,6 +481,7 @@ WRITE8_MEMBER( vboysnd_device::write )
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case SxEV0:
|
case SxEV0:
|
||||||
|
if (channel < 5)
|
||||||
if (snd_channel[channel].playing)
|
if (snd_channel[channel].playing)
|
||||||
snd_channel[channel].envelope = ((UINT8)mgetb(m_aram+SxEV0b+i)) >> 4;
|
snd_channel[channel].envelope = ((UINT8)mgetb(m_aram+SxEV0b+i)) >> 4;
|
||||||
break;
|
break;
|
||||||
|
@ -361,6 +361,7 @@ TIMER_CALLBACK_MEMBER(x68k_state::x68k_crtc_vblank_irq)
|
|||||||
*/
|
*/
|
||||||
WRITE16_MEMBER(x68k_state::x68k_crtc_w )
|
WRITE16_MEMBER(x68k_state::x68k_crtc_w )
|
||||||
{
|
{
|
||||||
|
if (offset < 0x24)
|
||||||
COMBINE_DATA(m_crtc.reg+offset);
|
COMBINE_DATA(m_crtc.reg+offset);
|
||||||
switch(offset)
|
switch(offset)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user