diff --git a/source/firm.c b/source/firm.c index 7728e31..ea0d833 100755 --- a/source/firm.c +++ b/source/firm.c @@ -134,7 +134,7 @@ u32 patchNativeFirm(u32 firmVersion, FirmwareSource nandType, u32 emuHeader, boo *arm11ExceptionsPage, *arm11SvcTable = getKernel11Info(arm11Section1, firm->section[1].size, &baseK11VA, &freeK11Space, &arm11SvcHandler, &arm11ExceptionsPage); - u32 kernel9Size = firm->section[2].size - (process9Size + sizeof(Cxi) + 0x200), + u32 kernel9Size = (u32)(process9Offset - arm9Section) - sizeof(Cxi) - 0x200, ret = 0; //Apply signature patches