mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-05 04:05:27 +02:00
Add a null check to the filename in sceKernelLoadModule.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user