mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Add some paranoid checks in AfterMatchingMipsCall::run().
Might work around a crash in #13057
This commit is contained in:
parent
7ac67ebd04
commit
893d26b679
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue