mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-13 02:08:49 +12:00
cellGame: cellGameDataCheck arg validate
This commit is contained in:
parent
0477f8ed3c
commit
d216398596
1 changed files with 1 additions and 1 deletions
|
@ -319,7 +319,7 @@ error_code cellGameDataCheck(u32 type, vm::cptr<char> dirName, vm::ptr<CellGameC
|
||||||
{
|
{
|
||||||
cellGame.warning("cellGameDataCheck(type=%d, dirName=%s, size=*0x%x)", type, dirName, size);
|
cellGame.warning("cellGameDataCheck(type=%d, dirName=%s, size=*0x%x)", type, dirName, size);
|
||||||
|
|
||||||
if ((type - 1) >= 3)
|
if (((type - 1) >= 3) || (dirName == vm::null))
|
||||||
{
|
{
|
||||||
return CELL_GAME_ERROR_PARAM;
|
return CELL_GAME_ERROR_PARAM;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue