From 4d7e53d7a09e00fb0426ac1198ed489829c447ca Mon Sep 17 00:00:00 2001 From: Eladash Date: Thu, 20 Feb 2020 23:21:27 +0200 Subject: [PATCH] cellGameDataCheckCreate(2): Check dirName --- 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 29576b03ca..9c9e46e62f 100644 --- a/rpcs3/Emu/Cell/Modules/cellGame.cpp +++ b/rpcs3/Emu/Cell/Modules/cellGame.cpp @@ -533,7 +533,7 @@ error_code cellGameDataCheckCreate2(ppu_thread& ppu, u32 version, vm::cptr //older sdk. it might not care about game type. - if (version != CELL_GAMEDATA_VERSION_CURRENT || errDialog > 1) + if (version != CELL_GAMEDATA_VERSION_CURRENT || errDialog > 1 || !funcStat || sysutil_check_name_string(dirName.get_ptr(), 1, CELL_GAME_DIRNAME_SIZE) != 0) { return CELL_GAMEDATA_ERROR_PARAM; }