From 15d3e69c4c614dffb5705a75b136109123533fe2 Mon Sep 17 00:00:00 2001 From: ANR2ME Date: Thu, 23 Sep 2021 12:22:57 +0700 Subject: [PATCH] Fix possible crash issue --- Core/HLE/proAdhoc.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Core/HLE/proAdhoc.cpp b/Core/HLE/proAdhoc.cpp index ff5646513b..35002fc512 100644 --- a/Core/HLE/proAdhoc.cpp +++ b/Core/HLE/proAdhoc.cpp @@ -667,6 +667,9 @@ s32_le countChildren(SceNetAdhocMatchingContext * context, const bool excludeTim */ SceNetAdhocMatchingMemberInternal * findPeer(SceNetAdhocMatchingContext * context, SceNetEtherAddr * mac) { + if (mac == NULL) + return NULL; + // Iterate Peer List for Matching Target SceNetAdhocMatchingMemberInternal * peer = context->peerlist; for (; peer != NULL; peer = peer->next)