14 Sep
2022
14 Sep
'22
9:56 p.m.
Esme Povirk (@madewokherd) commented about dlls/uiautomationcore/uia_provider.c:
+ DispatchMessageW(&msg); + } + + TRACE("Shutting down UI Automation provider thread.\n"); + + DestroyWindow(hwnd); + CoUninitialize(); + ExitThread(0); +} + +static BOOL uia_start_provider_thread(void) +{ + BOOL started = TRUE; + + EnterCriticalSection(&provider_thread_cs); + if (!IsWindow(provider_thread.hwnd)) Same thing here, I don't see the need to call IsWindow.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/846#note_8456