mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-23 11:19:03 +02:00
Check e_ident of elf header
This commit is contained in:
1 parent
424a24366c
commit
7f1fca8e74
3 files changed
+19
-20
No files matched your search
@@ -736,8 +736,9 @@ Module *__KernelLoadELFFromPtr(const u8 *ptr, u32 loadAddress, std::string *erro
|
||||
// Open ELF reader
|
||||
ElfReader reader((void*)ptr);
|
||||
|
||||
if (!reader.LoadInto(loadAddress)) {
|
||||
ERROR_LOG(SCEMODULE, "LoadInto failed");
|
||||
int result = reader.LoadInto(loadAddress);
|
||||
if (result != SCE_KERNEL_ERROR_OK) {
|
||||
ERROR_LOG(SCEMODULE, "LoadInto failed with error %08x",result);
|
||||
if (newptr)
|
||||
delete [] newptr;
|
||||
module->Cleanup();
|
||||
|
||||
Reference in new issue
Block a user