mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 22:47:03 +00:00
sceNp: add some more rpcn array pointer checks
These probably return an error on real firmware...
This commit is contained in:
parent
c8e2b9cb99
commit
4d09ba5080
2 changed files with 27 additions and 27 deletions
|
|
@ -57,7 +57,7 @@ namespace np
|
|||
mask_password = sce_roomdata->passwordSlotMask;
|
||||
|
||||
groups.clear();
|
||||
for (u32 i = 0; i < sce_roomdata->roomGroupNum; i++)
|
||||
for (u32 i = 0; i < sce_roomdata->roomGroupNum && sce_roomdata->roomGroup; i++)
|
||||
{
|
||||
const SceNpMatching2RoomGroup* sce_group = &sce_roomdata->roomGroup[i];
|
||||
memcpy(&groups[sce_group->groupId], sce_group, sizeof(SceNpMatching2RoomGroup));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue