mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Correct a crash on a missing kernel object.
This commit is contained in:
parent
9f88a8835d
commit
de439f8cd7
1 changed files with 1 additions and 1 deletions
|
@ -468,7 +468,7 @@ public:
|
|||
// see the Wrong type object error below, but we'll just have to live with that danger.
|
||||
T* t = static_cast<T*>(pool[handle - handleOffset]);
|
||||
if (t == nullptr || t->GetIDType() != T::GetStaticIDType()) {
|
||||
WARN_LOG(SCEKERNEL, "Kernel: Wrong object type for %d (%08x), was %s, should have been %s", handle, handle, t->GetTypeName(), T::GetStaticTypeName());
|
||||
WARN_LOG(SCEKERNEL, "Kernel: Wrong object type for %d (%08x), was %s, should have been %s", handle, handle, t ? t->GetTypeName() : "null", T::GetStaticTypeName());
|
||||
outError = T::GetMissingErrorCode();
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue