From fe1c26f2b2f1150e1583a03e6948a0a5a144845e Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 9 Jun 2013 08:35:54 -0700 Subject: [PATCH] Add a safety check for non-rtti. --- Core/HLE/sceKernelThread.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Core/HLE/sceKernelThread.cpp b/Core/HLE/sceKernelThread.cpp index d2e71037aa..5f66ca203a 100644 --- a/Core/HLE/sceKernelThread.cpp +++ b/Core/HLE/sceKernelThread.cpp @@ -2825,7 +2825,8 @@ ActionAfterMipsCall *Thread::getRunningCallbackAction() if (call) action = static_cast(call->doAfter); - if (!call || !action) { + // We don't have rtti, so check manually. + if (!call || !action || action->actionTypeID != actionAfterMipsCall) { ERROR_LOG(HLE, "Failed to access deferred info for thread: %s", this->nt.name); return NULL; }