From 6d5a6c346681b57db7c5d1cddf7b40543a365b0b Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 6 Apr 2021 12:24:22 +0200 Subject: [PATCH] ntdll: Avoid closing a handle twice. Signed-off-by: Alexandre Julliard --- dlls/ntdll/loader.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c index 7a714a5aa6d..e1810bc5ab9 100644 --- a/dlls/ntdll/loader.c +++ b/dlls/ntdll/loader.c @@ -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 );