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.