Commit 94401dc0 authored by Alexandre Julliard's avatar Alexandre Julliard

Fixed CloseHandle() on global handles.

parent 38a3d264
......@@ -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))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment