From d45fbc331ca153ccdef3f454fdbf1639470bfe42 Mon Sep 17 00:00:00 2001 From: Eladash Date: Sun, 1 Dec 2019 07:30:46 +0200 Subject: [PATCH] Fix error checking of cellGameContentPermit --- rpcs3/Emu/Cell/Modules/cellGame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/Modules/cellGame.cpp b/rpcs3/Emu/Cell/Modules/cellGame.cpp index 9b76f5a33d..127da9c176 100644 --- a/rpcs3/Emu/Cell/Modules/cellGame.cpp +++ b/rpcs3/Emu/Cell/Modules/cellGame.cpp @@ -470,7 +470,7 @@ error_code cellGameContentPermit(vm::ptr contentInfoPa { cellGame.warning("cellGameContentPermit(contentInfoPath=*0x%x, usrdirPath=*0x%x)", contentInfoPath, usrdirPath); - if (!contentInfoPath && !usrdirPath) + if (!contentInfoPath || !usrdirPath) { return CELL_GAME_ERROR_PARAM; }