From 94401dc0c1b06b3c11daa5aebe9986649542770c Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 1 Jan 1999 18:46:35 +0000 Subject: [PATCH] Fixed CloseHandle() on global handles. --- scheduler/handle.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scheduler/handle.c b/scheduler/handle.c index ec34184adf0..80257ccbf88 100644 --- a/scheduler/handle.c +++ b/scheduler/handle.c @@ -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)) { -- 2.11.4.GIT