mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Add a null check to the filename in sceKernelLoadModule.
This commit is contained in:
parent
0571198619
commit
d66f315902
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue