If __KernelLoadExec() fails, halt emulation.

Otherwise, we have no current thread, nothing can work.
This commit is contained in:
Unknown W. Brackets committed 2013-06-15 21:22:28 -07:00
1 parent f836517853
commit 2ab16f13b1
1 file changed
+1
+1
View File
@@ -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;