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:
parent
0cbca47dae
commit
d81256e7b6
3 changed files with 13 additions and 2 deletions
|
@ -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();
|
||||
|
|
|
@ -264,8 +264,8 @@ static const IRawElementProviderSimpleVtbl hwnd_host_provider_vtbl = {
|
|||
*/
|
||||
BOOL WINAPI UiaClientsAreListening(void)
|
||||
{
|
||||
FIXME("()\n");
|
||||
return FALSE;
|
||||
TRACE("()\n");
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue