mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-29 11:20:40 +00:00
Fix crash in sceKernelGetThreadmanIdType().
This commit is contained in:
parent
be7fd47fc2
commit
1a987dda26
@ -493,6 +493,11 @@ public:
|
||||
|
||||
bool GetIDType(SceUID handle, int *type) const
|
||||
{
|
||||
if (handle < handleOffset || handle >= handleOffset+maxCount || !occupied[handle-handleOffset])
|
||||
{
|
||||
ERROR_LOG(HLE, "Kernel: Bad object handle %i (%08x)", handle, handle);
|
||||
return false;
|
||||
}
|
||||
KernelObject *t = pool[handle - handleOffset];
|
||||
*type = t->GetIDType();
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user