Add a null check to the filename in sceKernelLoadModule.

This commit is contained in:
gigaherz 2012-11-10 12:16:23 +01:00
parent 0571198619
commit d66f315902

View file

@ -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;