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

Might work around a crash in #13057
This commit is contained in:
Henrik Rydgård 2020-07-06 21:21:54 +02:00
parent 7ac67ebd04
commit 893d26b679

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);