14 Sep
2022
14 Sep
'22
9:56 p.m.
Esme Povirk (@madewokherd) commented about dlls/uiautomationcore/uia_provider.c:
+ default: + break; + } + + return DefWindowProcW(hwnd, msg, wparam, lparam); +} + +static DWORD WINAPI uia_provider_thread_proc(void *arg) +{ + HANDLE initialized_event = arg; + HWND hwnd; + MSG msg; + + CoInitializeEx(NULL, COINIT_MULTITHREADED); + hwnd = CreateWindowW(L"Message", NULL, 0, 0, 0, 0, 0, HWND_MESSAGE, NULL, NULL, NULL); + if (!IsWindow(hwnd)) I don't think there's a need to check IsWindow here? If CreateWindow fails, it should return NULL.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/846#note_8455