From 692a94fe5e4ae559273ff6df730c665dabf6b804 Mon Sep 17 00:00:00 2001 From: TuxSH Date: Fri, 26 May 2017 04:48:58 +0200 Subject: [PATCH] Fix call to patchK11ModuleLoading --- source/firm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/firm.c b/source/firm.c index 14aa6c4..e13ad66 100755 --- a/source/firm.c +++ b/source/firm.c @@ -155,7 +155,7 @@ static inline void mergeSection0(FirmwareType firmType, bool loadFromStorage) //4) Patch NATIVE_FIRM if necessary if(isCustomModule) { - if(patchK11ModuleLoading(firm->section[0].size, dst - firm->section[0].address, firm->section[1].address, firm->section[1].size) != 0) + if(patchK11ModuleLoading(firm->section[0].size, dst - firm->section[0].address, (u8 *)firm + firm->section[1].offset, firm->section[1].size) != 0) error("Failed to inject custom sysmodule"); } }