mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-11 01:08:39 +12:00
Merge pull request #871 from raven02/patch-9
Check contentInfoPath && usrdirPath is not null for cellGameContentPermi...
This commit is contained in:
commit
28aaa94022
1 changed files with 6 additions and 0 deletions
|
@ -180,6 +180,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 == "")
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue