From d66f315902c6cc5770cc6001aa31f907fec971e1 Mon Sep 17 00:00:00 2001 From: gigaherz Date: Sat, 10 Nov 2012 12:16:23 +0100 Subject: [PATCH] Add a null check to the filename in sceKernelLoadModule. --- Core/HLE/sceKernelModule.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Core/HLE/sceKernelModule.cpp b/Core/HLE/sceKernelModule.cpp index 5b1017a392..b89200c17b 100644 --- a/Core/HLE/sceKernelModule.cpp +++ b/Core/HLE/sceKernelModule.cpp @@ -553,6 +553,9 @@ void sceKernelLoadExec() u32 sceKernelLoadModule(const char *name, u32 flags) { + if(!name) + return 0; + PSPFileInfo info = pspFileSystem.GetFileInfo(name); std::string error_string; s64 size = (s64)info.size;