From d3d315784cde592f64273f99d3bf8a423b9ed0e4 Mon Sep 17 00:00:00 2001 From: Aurora Date: Tue, 6 Sep 2016 15:52:08 +0200 Subject: [PATCH] Fix derp --- source/emunand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/emunand.c b/source/emunand.c index d34d6c3..9d31e40 100644 --- a/source/emunand.c +++ b/source/emunand.c @@ -58,7 +58,7 @@ void locateEmuNand(u32 *off, u32 *head, FirmwareSource *emuNand) } } -static inline void *getFreeK9Space(u8 *pos, u32 size) +static inline u8 *getFreeK9Space(u8 *pos, u32 size) { const u8 pattern[] = {0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0x00}; @@ -108,7 +108,7 @@ static inline void patchMpu(u8 *pos, u32 size) void patchEmuNand(u8 *arm9Section, u32 arm9SectionSize, u8 *process9Offset, u32 process9Size, u32 emuHeader, u32 branchAdditive) { //Copy emuNAND code - void *freeK9Space = getFreeK9Space(arm9Section, arm9SectionSize); + u8 *freeK9Space = getFreeK9Space(arm9Section, arm9SectionSize); memcpy(freeK9Space, emunand, emunand_size); //Add the data of the found emuNAND