From 0545c49530734bf0d313eb56b6ccf92c3c9e448d Mon Sep 17 00:00:00 2001 From: applestash Date: Sun, 21 Sep 2014 02:34:39 +1000 Subject: [PATCH] makerom: bug fix --- makerom/exheader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makerom/exheader.c b/makerom/exheader.c index d18c1ac..7db6f31 100644 --- a/makerom/exheader.c +++ b/makerom/exheader.c @@ -990,7 +990,7 @@ int SetARM11KernelDescOtherCapabilities(ARM11KernelCapabilityDescriptor *desc, r fprintf(stderr,"[EXHEADER ERROR] Invalid memory type: \"%s\"\n",rsf->AccessControlInfo.MemoryType); return EXHDR_BAD_RSF_OPT; } - otherCapabilities = (otherCapabilities & 0xffffff0f) | memType << 8; + otherCapabilities = (otherCapabilities & 0xfffff0ff) | (memType & 7) << 8; } if(otherCapabilities){