Alexandre Julliard : ntdll: Avoid closing a handle twice.
Alexandre Julliard
julliard at winehq.org
Tue Apr 6 15:50:12 CDT 2021
Module: wine
Branch: master
Commit: 6d5a6c346681b57db7c5d1cddf7b40543a365b0b
URL: https://source.winehq.org/git/wine.git/?a=commit;h=6d5a6c346681b57db7c5d1cddf7b40543a365b0b
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Apr 6 12:24:22 2021 +0200
ntdll: Avoid closing a handle twice.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 );
More information about the wine-cvs
mailing list