Esme Povirk (@madewokherd) commented about dlls/uiautomationcore/uia_com_client.c:
static HRESULT WINAPI uia_iface_ElementFromHandle(IUIAutomation6 *iface, UIA_HWND hwnd, IUIAutomationElement **out_elem) {
- FIXME("%p, %p, %p: stub\n", iface, hwnd, out_elem);
- return E_NOTIMPL;
- struct uia_iface *uia_iface = impl_from_IUIAutomation6(iface);
- HUIANODE node;
- HRESULT hr;
- TRACE("%p, %p, %p\n", iface, hwnd, out_elem);
- hr = UiaNodeFromHandle((HWND)hwnd, &node);
- if (FAILED(hr) || !node)
I think this NULL check is also unnecessary.