Skip to content
Snippets Groups Projects
Commit f2792059 authored by Uwe Bonnes's avatar Uwe Bonnes Committed by Alexandre Julliard
Browse files

Fixed off by one error in HANDLE_GetObjPtr.

parent 4ba574d6
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment