diff --git a/rpcs3/Emu/Cell/Modules/sceNp2.cpp b/rpcs3/Emu/Cell/Modules/sceNp2.cpp index 33855565cb..38db62ee20 100644 --- a/rpcs3/Emu/Cell/Modules/sceNp2.cpp +++ b/rpcs3/Emu/Cell/Modules/sceNp2.cpp @@ -1466,7 +1466,10 @@ error_code sceNpMatching2GetRoomPasswordLocal(SceNpMatching2ContextId ctxId, Sce if (password) { if (withPassword) *withPassword = true; - memcpy(roomPassword.get_ptr(), &*password, sizeof(SceNpMatching2SessionPassword)); + if (roomPassword) + { + std::memcpy(roomPassword.get_ptr(), &*password, sizeof(SceNpMatching2SessionPassword)); + } } else {