cellGame: cellGameDataCheck arg validate

This commit is contained in:
Jake 2018-01-12 17:18:57 -06:00 committed by kd-11
parent 0477f8ed3c
commit d216398596
1 changed files with 1 additions and 1 deletions

View File

@ -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);
if ((type - 1) >= 3)
if (((type - 1) >= 3) || (dirName == vm::null))
{
return CELL_GAME_ERROR_PARAM;
}