Paul Gofman pgofman@codeweavers.com writes:
@@ -2267,12 +2267,17 @@ static NTSTATUS open_dll_file( UNICODE_STRING *nt_name, WINE_MODREF **pwm, void NTSTATUS status; HANDLE handle, mapping;
- if (loaded_only)
if ((*pwm = find_fullname_module( nt_name ))) { NtUnmapViewOfSection( NtCurrentProcess(), *module ); *module = NULL;lock_ldr_data();
/* ldr_data_section to be unlocked by the caller. */
Not releasing the lock in the same scope is ugly and fragile, please try to find a better way.