Snes9x - Fix out-of-bounds memory access. (#871)

This commit is contained in:
bladeoner 2019-08-05 19:08:00 +02:00 committed by dborth
parent ecd7869234
commit 637f4b42cc

View File

@ -407,7 +407,7 @@ MISC_CLOCK( 30 )
inline VOICE_CLOCK( V1 )
{
m.t_dir_addr = m.t_dir * 0x100 + m.t_srcn * 4;
m.t_dir_addr = (m.t_dir * 0x100 + m.t_srcn * 4) & 0xffff;
m.t_srcn = VREG(v->regs,srcn);
}
inline VOICE_CLOCK( V2 )