Skip to content

Commit

Permalink
Fix crash in sceKernelGetThreadmanIdType().
Browse files Browse the repository at this point in the history
  • Loading branch information
unknownbrackets committed Jun 8, 2013
1 parent be7fd47 commit 1a987dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Core/HLE/sceKernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,11 @@ class KernelObjectPool {

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;
Expand Down

0 comments on commit 1a987dd

Please sign in to comment.