[core] fix some endian bugs

This commit is contained in:
Ced2911 authored and Unknown W. Brackets committed 2014-01-26 14:26:27 -08:00
1 parent 2941ec7227
commit 2c522cda9a
2 files changed
+5 -4

No files matched your search

+1 -1
View File
@@ -1056,7 +1056,7 @@ Module *__KernelLoadELFFromPtr(const u8 *ptr, u32 loadAddress, std::string *erro
continue;
}
u32_le variableCount = ent->size <= 4 ? ent->vcount : std::max((u32)ent->vcount , (u32)ent->vcountNew);
u32 variableCount = ent->size <= 4 ? ent->vcount : std::max((u32)ent->vcount , (u32)ent->vcountNew);
const char *name;
if (Memory::IsValidAddress(ent->name)) {
name = Memory::GetCharPointer(ent->name);