Skip to content

Commit

Permalink
Add some paranoid checks in AfterMatchingMipsCall::run().
Browse files Browse the repository at this point in the history
Might work around a crash in #13057
  • Loading branch information
hrydgard committed Jul 6, 2020
1 parent 7ac67eb commit 893d26b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Core/HLE/proAdhoc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 893d26b

Please sign in to comment.