From 2f90c8d35a79c0d7631cd34a18465e1b0953f8ec Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Tue, 15 Jul 2014 23:33:01 -0700 Subject: [PATCH] Fix a bad == comparison typo. --- Core/HLE/sceKernelInterrupt.cpp | 4 ++-- Core/HLE/sceKernelModule.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Core/HLE/sceKernelInterrupt.cpp b/Core/HLE/sceKernelInterrupt.cpp index 5cc0661728..632a0776f7 100644 --- a/Core/HLE/sceKernelInterrupt.cpp +++ b/Core/HLE/sceKernelInterrupt.cpp @@ -512,7 +512,7 @@ u32 sceKernelRegisterSubIntrHandler(u32 intrNumber, u32 subIntrNumber, u32 handl } else { DEBUG_LOG(SCEINTC, "sceKernelRegisterSubIntrHandler(%i, %i, %08x, %08x)", intrNumber, subIntrNumber, handler, handlerArg); } - } else if (error = SCE_KERNEL_ERROR_FOUND_HANDLER) { + } else if (error == SCE_KERNEL_ERROR_FOUND_HANDLER) { ERROR_LOG_REPORT(SCEINTC, "sceKernelRegisterSubIntrHandler(%i, %i, %08x, %08x): duplicate handler", intrNumber, subIntrNumber, handler, handlerArg); } else { ERROR_LOG_REPORT(SCEINTC, "sceKernelRegisterSubIntrHandler(%i, %i, %08x, %08x): error %08x", intrNumber, subIntrNumber, handler, handlerArg, error); @@ -532,7 +532,7 @@ u32 sceKernelReleaseSubIntrHandler(u32 intrNumber, u32 subIntrNumber) { u32 error = __ReleaseSubIntrHandler(intrNumber, subIntrNumber); if (error != SCE_KERNEL_ERROR_OK) { - ERROR_LOG(SCEINTC, "sceKernelReleaseSubIntrHandler(%i, %i): error %08x", intrNumber, subIntrNumber); + ERROR_LOG(SCEINTC, "sceKernelReleaseSubIntrHandler(%i, %i): error %08x", intrNumber, subIntrNumber, error); } return error; } diff --git a/Core/HLE/sceKernelModule.cpp b/Core/HLE/sceKernelModule.cpp index 7c1af5a784..374b26c07c 100644 --- a/Core/HLE/sceKernelModule.cpp +++ b/Core/HLE/sceKernelModule.cpp @@ -1252,7 +1252,7 @@ Module *__KernelLoadELFFromPtr(const u8 *ptr, u32 loadAddress, std::string *erro default: func.nid = nid; func.symAddr = exportAddr; - if (ent->name == NULL) { + if (ent->name == 0) { WARN_LOG_REPORT(HLE, "Exporting func from syslib export: %08x", nid); } module->ExportFunc(func); @@ -1309,7 +1309,7 @@ Module *__KernelLoadELFFromPtr(const u8 *ptr, u32 loadAddress, std::string *erro default: var.nid = nid; var.symAddr = exportAddr; - if (ent->name == NULL) { + if (ent->name == 0) { WARN_LOG_REPORT(HLE, "Exporting var from syslib export: %08x", nid); } module->ExportVar(var);