13 Sep
2022
13 Sep
'22
10:11 p.m.
Esme Povirk (@madewokherd) commented about dlls/uiautomationcore/uia_client.c:
+/*********************************************************************** + * UiaNodeFromHandle (uiautomationcore.@) + */ +HRESULT WINAPI UiaNodeFromHandle(HWND hwnd, HUIANODE *huianode) +{ + struct uia_node *node; + HRESULT hr; + + TRACE("(%p, %p)\n", hwnd, huianode); + + if (!huianode) + return E_INVALIDARG; + + *huianode = NULL; + + if (!IsWindow(hwnd)) Seems like a potential time-of-check to time-of-use issue.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/832#note_8382