sceNp: add missing roomPassword check
This commit is contained in:
@@ -1466,7 +1466,10 @@ error_code sceNpMatching2GetRoomPasswordLocal(SceNpMatching2ContextId ctxId, Sce
|
|||||||
if (password)
|
if (password)
|
||||||
{
|
{
|
||||||
if (withPassword) *withPassword = true;
|
if (withPassword) *withPassword = true;
|
||||||
memcpy(roomPassword.get_ptr(), &*password, sizeof(SceNpMatching2SessionPassword));
|
if (roomPassword)
|
||||||
|
{
|
||||||
|
std::memcpy(roomPassword.get_ptr(), &*password, sizeof(SceNpMatching2SessionPassword));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user