Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
15d352c5
Commit
15d352c5
authored
Jul 17, 2023
by
Connor McAdams
Committed by
Alexandre Julliard
Jul 19, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uiautomationcore: Implement IUIAutomation::RemoveAllEventHandlers.
Signed-off-by:
Connor McAdams
<
cmcadams@codeweavers.com
>
parent
4cc7525a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
4 deletions
+32
-4
uiautomation.c
dlls/uiautomationcore/tests/uiautomation.c
+2
-2
uia_com_client.c
dlls/uiautomationcore/uia_com_client.c
+30
-2
No files found.
dlls/uiautomationcore/tests/uiautomation.c
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
);
}
...
...
dlls/uiautomationcore/uia_com_client.c
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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment