From ee17699e09abbeb47e52c1f25a725ef0f233df8f Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Wed, 30 Jan 2013 23:52:58 -0800 Subject: [PATCH] Fix a logic error in module load validation. --- 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 e782d85603..918c4727af 100644 --- a/Core/HLE/sceKernelModule.cpp +++ b/Core/HLE/sceKernelModule.cpp @@ -640,7 +640,7 @@ Module *__KernelLoadModule(u8 *fileptr, SceKernelLMOption *options, std::string void __KernelStartModule(Module *m, int args, const char *argp, SceKernelSMOption *options) { - if (m->nm.module_start_func != 0 || m->nm.module_start_func != -1) + if (m->nm.module_start_func != 0 && m->nm.module_start_func != -1) { if (m->nm.module_start_func != m->nm.entry_addr) WARN_LOG(LOADER, "Main module has start func (%08x) different from entry (%08x)?", m->nm.module_start_func, m->nm.entry_addr);