From d17e6064dee151d53c58e94d2abb88cccdd0b786 Mon Sep 17 00:00:00 2001 From: shenweip Date: Wed, 14 Aug 2013 01:33:02 +0800 Subject: [PATCH] Update --- Core/HLE/sceKernelModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/HLE/sceKernelModule.cpp b/Core/HLE/sceKernelModule.cpp index 9fc112ce3c..845f52c139 100644 --- a/Core/HLE/sceKernelModule.cpp +++ b/Core/HLE/sceKernelModule.cpp @@ -720,7 +720,7 @@ Module *__KernelLoadELFFromPtr(const u8 *ptr, u32 loadAddress, std::string *erro continue; } - u32_le variableCount = ent->size == 4 ? ent->vcount : ent->vcountNew; + u32_le 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);