Fixed CloseHandle() on global handles.

This commit is contained in:
Alexandre Julliard 1999-01-01 18:46:35 +00:00
parent 38a3d264f1
commit 94401dc0c1

View file

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