mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Add some paranoid checks in AfterMatchingMipsCall::run().
Might work around a crash in #13057
This commit is contained in:
1 parent
7ac67ebd04
commit
893d26b679
1 file changed
+3
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user