mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 21:41:26 +12:00
sceNp: add missing roomPassword check
This commit is contained in:
parent
2c424a0911
commit
108d0d49ec
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue