From 556b96035535bbe191b73eec66f18e227d6ecbaf Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 7 Jul 2019 18:06:06 -0700 Subject: [PATCH] Kernel: Shutdown when module load fails. This prevents us from trying to reinit next time, which can crash since we never finished initing in the first place. --- Core/HLE/sceKernelModule.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Core/HLE/sceKernelModule.cpp b/Core/HLE/sceKernelModule.cpp index 8116388cf6..26e9af5c4f 100644 --- a/Core/HLE/sceKernelModule.cpp +++ b/Core/HLE/sceKernelModule.cpp @@ -1626,6 +1626,7 @@ bool __KernelLoadExec(const char *filename, u32 paramPtr, std::string *error_str if (param_argp) delete[] param_argp; if (param_key) delete[] param_key; } + __KernelShutdown(); return false; }