4 Nov
2020
4 Nov
'20
4:20 p.m.
Paul Gofman <pgofman(a)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) + lock_ldr_data(); if ((*pwm = find_fullname_module( nt_name ))) { NtUnmapViewOfSection( NtCurrentProcess(), *module ); *module = NULL; + /* 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. -- Alexandre Julliard julliard(a)winehq.org