ntdll: Avoid closing a handle twice.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-04-06 12:24:22 +02:00
parent 7c0d6e8067
commit 6d5a6c3466
1 changed files with 1 additions and 0 deletions

View File

@ -2282,6 +2282,7 @@ static NTSTATUS open_dll_file( UNICODE_STRING *nt_name, WINE_MODREF **pwm, HANDL
TRACE( "%s is for arch %x, continuing search\n", debugstr_us(nt_name), image_info->Machine );
status = STATUS_IMAGE_MACHINE_TYPE_MISMATCH;
NtClose( *mapping );
*mapping = NULL;
}
}
NtClose( handle );