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