Fix crash in sceKernelGetThreadmanIdType().

This commit is contained in:
Unknown W. Brackets 2013-06-08 02:21:21 -07:00
parent be7fd47fc2
commit 1a987dda26

View File

@ -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;