mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
Fixed CloseHandle() on global handles.
This commit is contained in:
parent
38a3d264f1
commit
94401dc0c1
1 changed files with 5 additions and 0 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue