Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
kingjinni
wine
Commits
15d352c5
Commit
15d352c5
authored
1 year ago
by
Connor McAdams
Committed by
Alexandre Julliard
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
uiautomationcore: Implement IUIAutomation::RemoveAllEventHandlers.
Signed-off-by:
Connor McAdams
<
cmcadams@codeweavers.com
>
parent
4cc7525a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dlls/uiautomationcore/tests/uiautomation.c
+2
-2
2 additions, 2 deletions
dlls/uiautomationcore/tests/uiautomation.c
dlls/uiautomationcore/uia_com_client.c
+30
-2
30 additions, 2 deletions
dlls/uiautomationcore/uia_com_client.c
with
32 additions
and
4 deletions
dlls/uiautomationcore/tests/uiautomation.c
+
2
−
2
View file @
15d352c5
...
...
@@ -13217,8 +13217,8 @@ static void test_IUIAutomationEventHandler(IUIAutomation *uia_iface, IUIAutomati
ok(AutomationEventHandler.ref > 1, "Unexpected refcnt %ld\n", AutomationEventHandler.ref);
hr = IUIAutomation_RemoveAllEventHandlers(uia_iface);
todo_wine
ok(hr == S_OK, "Unexpected hr %#lx.\n", hr);
todo_wine
ok(AutomationEventHandler.ref == 1, "Unexpected refcnt %ld\n", AutomationEventHandler.ref);
ok(hr == S_OK, "Unexpected hr %#lx.\n", hr);
ok(AutomationEventHandler.ref == 1, "Unexpected refcnt %ld\n", AutomationEventHandler.ref);
IUIAutomationElement_Release(elem2);
}
...
...
This diff is collapsed.
Click to expand it.
dlls/uiautomationcore/uia_com_client.c
+
30
−
2
View file @
15d352c5
...
...
@@ -3261,8 +3261,36 @@ static HRESULT WINAPI uia_iface_RemoveFocusChangedEventHandler(IUIAutomation6 *i
static
HRESULT
WINAPI
uia_iface_RemoveAllEventHandlers
(
IUIAutomation6
*
iface
)
{
FIXME
(
"%p: stub
\n
"
,
iface
);
return
E_NOTIMPL
;
struct
uia_event_handler_map_entry
*
entry
,
*
cursor
;
TRACE
(
"%p
\n
"
,
iface
);
EnterCriticalSection
(
&
com_event_handlers_cs
);
if
(
!
com_event_handlers
.
handler_count
)
goto
exit
;
RB_FOR_EACH_ENTRY_DESTRUCTOR
(
entry
,
cursor
,
&
com_event_handlers
.
handler_map
,
struct
uia_event_handler_map_entry
,
entry
)
{
struct
uia_com_event
*
event
,
*
event2
;
LIST_FOR_EACH_ENTRY_SAFE
(
event
,
event2
,
&
entry
->
handlers_list
,
struct
uia_com_event
,
event_handler_map_list_entry
)
{
list_remove
(
&
event
->
event_handler_map_list_entry
);
IUnknown_Release
(
event
->
handler_iface
);
com_event_handlers
.
handler_count
--
;
heap_free
(
event
);
}
rb_remove
(
&
com_event_handlers
.
handler_map
,
&
entry
->
entry
);
IUnknown_Release
(
entry
->
handler_iface
);
SafeArrayDestroy
(
entry
->
runtime_id
);
heap_free
(
entry
);
}
exit:
LeaveCriticalSection
(
&
com_event_handlers_cs
);
return
S_OK
;
}
static
HRESULT
WINAPI
uia_iface_IntNativeArrayToSafeArray
(
IUIAutomation6
*
iface
,
int
*
arr
,
int
arr_count
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment