From 06f3df0ff465d77b5f52a3a0563474a16d63ffac Mon Sep 17 00:00:00 2001 From: raven02 Date: Wed, 19 Nov 2014 23:17:29 +0800 Subject: [PATCH] Check contentInfoPath && usrdirPath is not null for cellGameContentPermit --- rpcs3/Emu/SysCalls/Modules/cellGame.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rpcs3/Emu/SysCalls/Modules/cellGame.cpp b/rpcs3/Emu/SysCalls/Modules/cellGame.cpp index 2e320f6a49..e8b8ee0cb6 100644 --- a/rpcs3/Emu/SysCalls/Modules/cellGame.cpp +++ b/rpcs3/Emu/SysCalls/Modules/cellGame.cpp @@ -180,6 +180,12 @@ int cellGameContentPermit(vm::ptr contentInfoPath, vm: { cellGame->Warning("cellGameContentPermit(contentInfoPath_addr=0x%x, usrdirPath_addr=0x%x)", contentInfoPath.addr(), usrdirPath.addr()); + + if (!contentInfoPath && !usrdirPath) + { + cellGame->Warning("cellGameContentPermit(): CELL_GAME_ERROR_PARAM"); + return CELL_GAME_ERROR_PARAM; + } if (contentInfo == "" && usrdir == "") {