Check contentInfoPath && usrdirPath is not null for cellGameContentPermit
This commit is contained in:
@@ -181,6 +181,12 @@ int cellGameContentPermit(vm::ptr<char[CELL_GAME_PATH_MAX]> contentInfoPath, vm:
|
|||||||
cellGame->Warning("cellGameContentPermit(contentInfoPath_addr=0x%x, usrdirPath_addr=0x%x)",
|
cellGame->Warning("cellGameContentPermit(contentInfoPath_addr=0x%x, usrdirPath_addr=0x%x)",
|
||||||
contentInfoPath.addr(), usrdirPath.addr());
|
contentInfoPath.addr(), usrdirPath.addr());
|
||||||
|
|
||||||
|
if (!contentInfoPath && !usrdirPath)
|
||||||
|
{
|
||||||
|
cellGame->Warning("cellGameContentPermit(): CELL_GAME_ERROR_PARAM");
|
||||||
|
return CELL_GAME_ERROR_PARAM;
|
||||||
|
}
|
||||||
|
|
||||||
if (contentInfo == "" && usrdir == "")
|
if (contentInfo == "" && usrdir == "")
|
||||||
{
|
{
|
||||||
cellGame->Warning("cellGameContentPermit(): CELL_GAME_ERROR_FAILURE (no permission given)");
|
cellGame->Warning("cellGameContentPermit(): CELL_GAME_ERROR_FAILURE (no permission given)");
|
||||||
|
|||||||
Reference in New Issue
Block a user