From f27920599adf0cd3f10ddc7a9072d3042f800036 Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Mon, 19 Oct 1998 08:41:52 +0000 Subject: [PATCH] Fixed off by one error in HANDLE_GetObjPtr. --- scheduler/handle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)