1
0
mirror of https://github.com/wine-mirror/wine synced 2024-06-29 06:14:34 +00:00

uiautomationcore: Return TRUE from UiaClientsAreListening().

This function always returns TRUE on Windows 7 and above, and now that we
have stubs for all the event raising functions there should be no harm
in doing the same.

Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
This commit is contained in:
Connor McAdams 2023-10-30 08:44:31 -04:00 committed by Alexandre Julliard
parent 0cbca47dae
commit d81256e7b6
3 changed files with 13 additions and 2 deletions

View File

@ -18607,6 +18607,15 @@ static void test_uia_event_ProxyProviderWinEventHandler(void)
UiaRegisterProviderCallback(NULL);
}
static void test_UiaClientsAreListening(void)
{
BOOL ret;
/* Always returns TRUE on Windows 7 and above. */
ret = UiaClientsAreListening();
ok(!!ret, "ret != TRUE\n");
}
/*
* Once a process returns a UI Automation provider with
* UiaReturnRawElementProvider it ends up in an implicit MTA until exit. This
@ -18663,6 +18672,7 @@ START_TEST(uiautomation)
return;
}
test_UiaClientsAreListening();
test_UiaHostProviderFromHwnd();
test_uia_reserved_value_ifaces();
test_UiaLookupId();

View File

@ -264,8 +264,8 @@ static const IRawElementProviderSimpleVtbl hwnd_host_provider_vtbl = {
*/
BOOL WINAPI UiaClientsAreListening(void)
{
FIXME("()\n");
return FALSE;
TRACE("()\n");
return TRUE;
}
/***********************************************************************

View File

@ -559,6 +559,7 @@ HRESULT WINAPI UiaRemoveEvent(HUIAEVENT huiaevent);
HRESULT WINAPI UiaEventAddWindow(HUIAEVENT huiaevent, HWND hwnd);
HRESULT WINAPI UiaEventRemoveWindow(HUIAEVENT huiaevent, HWND hwnd);
BOOL WINAPI UiaHasServerSideProvider(HWND hwnd);
BOOL WINAPI UiaClientsAreListening(void);
#ifdef __cplusplus
}