From 2ab16f13b10e62d8312c5ad6bf5bb9b33a11d63e Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 15 Jun 2013 21:22:28 -0700 Subject: [PATCH] If __KernelLoadExec() fails, halt emulation. Otherwise, we have no current thread, nothing can work. --- Core/HLE/sceKernelModule.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Core/HLE/sceKernelModule.cpp b/Core/HLE/sceKernelModule.cpp index ced7575ad1..a97d6808c5 100644 --- a/Core/HLE/sceKernelModule.cpp +++ b/Core/HLE/sceKernelModule.cpp @@ -995,6 +995,7 @@ int sceKernelLoadExec(const char *filename, u32 paramPtr) std::string error_string; if (!__KernelLoadExec(filename, param, &error_string)) { ERROR_LOG(HLE, "sceKernelLoadExec failed: %s", error_string.c_str()); + Core_UpdateState(CORE_ERROR); return -1; } return 0;