mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-11-23 19:19:22 +01:00
Snes9x - Fix out-of-bounds memory access. (#871)
This commit is contained in:
parent
ecd7869234
commit
637f4b42cc
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user