Add some paranoid checks in AfterMatchingMipsCall::run().

Might work around a crash in #13057
This commit is contained in:
Henrik Rydgård committed 2020-07-06 21:24:48 +02:00
1 parent 7ac67ebd04
commit 893d26b679
1 file changed
+3 -1
+3 -1
View File
@@ -912,7 +912,9 @@ bool IsMatchingInCallback(SceNetAdhocMatchingContext * context) {
}
void AfterMatchingMipsCall::run(MipsCall &call) {
if (context == NULL) return;
if (!context || !context->eventlock)
return;
DEBUG_LOG(SCENET, "Entering AfterMatchingMipsCall::run [ID=%i][Event=%d] [cbId: %u]", context->id, EventID, call.cbId);
//u32 v0 = currentMIPS->r[MIPS_REG_V0];
if (__IsInInterrupt()) ERROR_LOG(SCENET, "AfterMatchingMipsCall::run [ID=%i][Event=%d] is Returning Inside an Interrupt!", context->id, EventID);