sceNp: add missing check for roomSlotInfo

This commit is contained in:
Megamouse 2024-01-09 01:21:44 +01:00
parent 485fca34b0
commit ffe1b287a8
1 changed files with 5 additions and 0 deletions

View File

@ -824,6 +824,11 @@ error_code sceNpMatching2GetRoomSlotInfoLocal(SceNpMatching2ContextId ctxId, con
return SCE_NP_MATCHING2_ERROR_NOT_INITIALIZED; return SCE_NP_MATCHING2_ERROR_NOT_INITIALIZED;
} }
if (!roomSlotInfo)
{
return SCE_NP_MATCHING2_ERROR_INVALID_ARGUMENT;
}
if (!ctxId) if (!ctxId)
{ {
return SCE_NP_MATCHING2_ERROR_INVALID_CONTEXT_ID; return SCE_NP_MATCHING2_ERROR_INVALID_CONTEXT_ID;