Commit 6d5a6c34 authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Avoid closing a handle twice.

parent 7c0d6e80
...@@ -2282,6 +2282,7 @@ static NTSTATUS open_dll_file( UNICODE_STRING *nt_name, WINE_MODREF **pwm, HANDL ...@@ -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 ); TRACE( "%s is for arch %x, continuing search\n", debugstr_us(nt_name), image_info->Machine );
status = STATUS_IMAGE_MACHINE_TYPE_MISMATCH; status = STATUS_IMAGE_MACHINE_TYPE_MISMATCH;
NtClose( *mapping ); NtClose( *mapping );
*mapping = NULL;
} }
} }
NtClose( handle ); NtClose( handle );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment