diff --git a/scheduler/handle.c b/scheduler/handle.c index 3dfd03ab905..0fa9f305649 100644 --- a/scheduler/handle.c +++ b/scheduler/handle.c @@ -155,7 +155,7 @@ K32OBJ *HANDLE_GetObjPtr( PDB32 *pdb, HANDLE32 handle, K32OBJ *ptr = NULL; SYSTEM_LOCK(); - if ((handle > 0) && (handle <= pdb->handle_table->count)) + if ((handle > 0) && (handle < pdb->handle_table->count)) { HANDLE_ENTRY *entry = &pdb->handle_table->entries[handle]; if ((entry->access & access) != access)