cellSysutilAvc: fix cellSysutilAvcEnumPlayers error check

This commit is contained in:
Megamouse 2024-09-08 19:10:29 +02:00
parent d13acdb484
commit 00e5d54be7

View File

@ -63,9 +63,19 @@ error_code cellSysutilAvcEnumPlayers(vm::ptr<SceNpId> players_id, vm::ptr<s32> p
{
cellSysutil.todo("cellSysutilAvcEnumPlayers(players_id=*0x%x, players_num=*0x%x)", players_id, players_num);
if (!players_id || !players_num)
if (!players_num)
return CELL_AVC_ERROR_INVALID_ARGUMENT;
if (players_id)
{
// Fill players_id with players_num participants
}
else
{
// Return number of participants
*players_num = 0;
}
return CELL_OK;
}