mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Merge pull request #3007 from Ced2911/module_endian
Fix crypted elf crashes on big endian
This commit is contained in:
commit
6bb2bf07eb
1 changed files with 1 additions and 1 deletions
|
@ -446,7 +446,7 @@ Module *__KernelLoadELFFromPtr(const u8 *ptr, u32 loadAddress, std::string *erro
|
|||
u32_le *magicPtr = (u32_le *) ptr;
|
||||
if (*magicPtr == 0x4543537e) { // "~SCE"
|
||||
INFO_LOG(HLE, "~SCE module, skipping header");
|
||||
ptr += *(u32*)(ptr + 4);
|
||||
ptr += *(u32_le*)(ptr + 4);
|
||||
magicPtr = (u32_le *)ptr;
|
||||
}
|
||||
*magic = *magicPtr;
|
||||
|
|
Loading…
Add table
Reference in a new issue