Fixed off by one error in HANDLE_GetObjPtr.

This commit is contained in:
Uwe Bonnes 1998-10-19 08:41:52 +00:00 committed by Alexandre Julliard
parent 4ba574d6db
commit f27920599a

View file

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