mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-12 14:00:27 +02:00
Add a safety check for non-rtti.
This commit is contained in:
1 parent
104a3a316b
commit
fe1c26f2b2
1 file changed
+2
-1
@@ -2825,7 +2825,8 @@ ActionAfterMipsCall *Thread::getRunningCallbackAction()
|
||||
if (call)
|
||||
action = static_cast<ActionAfterMipsCall *>(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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user