uiautomationcore: Don't set HRESULT when attempting to advise currently focused HUIANODE.
create_uia_node_from_hwnd() is expected to fail if the HWND doesn't have a native serverside provider. Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
This commit is contained in:
parent
4ed0a49618
commit
0cbca47dae
1 changed files with 1 additions and 2 deletions
|
@ -1372,8 +1372,7 @@ static HRESULT uia_event_handlers_add_handler(IUnknown *handler_iface, SAFEARRAY
|
||||||
{
|
{
|
||||||
HUIANODE node = NULL;
|
HUIANODE node = NULL;
|
||||||
|
|
||||||
hr = create_uia_node_from_hwnd(info.hwndFocus, &node, NODE_FLAG_IGNORE_CLIENTSIDE_HWND_PROVS);
|
if (SUCCEEDED(create_uia_node_from_hwnd(info.hwndFocus, &node, NODE_FLAG_IGNORE_CLIENTSIDE_HWND_PROVS)))
|
||||||
if (SUCCEEDED(hr))
|
|
||||||
uia_com_focus_handler_advise_node(event, node, info.hwndFocus);
|
uia_com_focus_handler_advise_node(event, node, info.hwndFocus);
|
||||||
UiaNodeRelease(node);
|
UiaNodeRelease(node);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue