From a361c2d968b7b5ad797adfc5b3c00e960a59c22a Mon Sep 17 00:00:00 2001 From: anod <182859762@qq.com> Date: Tue, 21 Mar 2023 10:19:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3u32*=E5=88=B0u8*?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/arm11/cheat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/arm11/cheat.c b/source/arm11/cheat.c index 024ab27..40cf552 100644 --- a/source/arm11/cheat.c +++ b/source/arm11/cheat.c @@ -406,7 +406,7 @@ static CodeLocation rom_fit_newsize( CodeLocation rom, int realend, int totalsiz u32 start = realend - INSTR_SIZE; memset( &rom[INSTR_LEN(start)], 0, sznrom-start ); *newsize = sznrom; - return rom + sznrom - ( (totalsize+0x1f) & (~0xf) ); + return rom + INSTR_LEN( sznrom - ( (totalsize+0x1f) & (~0xf) ) ); } return rom + INSTR_LEN( realend );