Fix crash in sceKernelGetThreadmanIdType().

This commit is contained in:
Unknown W. Brackets committed 2013-06-08 03:00:50 -07:00
1 parent be7fd47fc2
commit 1a987dda26
1 file changed
+5
+5
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;