1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 18:53:28 +01:00

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

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