1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 18:53:28 +01:00

sceNp: add missing roomPassword check

This commit is contained in:
Megamouse 2024-01-09 02:11:10 +01:00
parent 2c424a0911
commit 108d0d49ec

View File

@ -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
{