Skip to content
Snippets Groups Projects
Commit 94401dc0 authored by Alexandre Julliard's avatar Alexandre Julliard
Browse files

Fixed CloseHandle() on global handles.

parent 38a3d264
No related branches found
No related tags found
No related merge requests found
......@@ -271,6 +271,11 @@ static BOOL32 HANDLE_Close( PDB32 *pdb, HANDLE32 handle )
BOOL32 ret = FALSE;
K32OBJ *ptr;
if (HANDLE_IS_GLOBAL( handle ))
{
handle = HANDLE_GLOBAL_TO_LOCAL( handle );
pdb = PROCESS_Initial();
}
SYSTEM_LOCK();
if ((handle > 0) && (handle < pdb->handle_table->count))
{
......
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