Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
bb9bc082
Commit
bb9bc082
authored
Nov 30, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 30, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Pass listener type as a string to remove_event_listener.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ebefab4b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
11 deletions
+4
-11
htmlevent.c
dlls/mshtml/htmlevent.c
+4
-11
No files found.
dlls/mshtml/htmlevent.c
View file @
bb9bc082
...
...
@@ -271,12 +271,12 @@ static listener_container_t *get_listener_container(EventTarget *event_target, c
return
container
;
}
static
void
remove_event_listener
(
EventTarget
*
event_target
,
eventid_t
eid
,
listener_type_t
type
,
IDispatch
*
function
)
static
void
remove_event_listener
(
EventTarget
*
event_target
,
const
WCHAR
*
type_name
,
listener_type_t
type
,
IDispatch
*
function
)
{
listener_container_t
*
container
;
event_listener_t
*
listener
;
container
=
get_listener_container
(
event_target
,
event_info
[
eid
].
name
,
FALSE
);
container
=
get_listener_container
(
event_target
,
type_
name
,
FALSE
);
if
(
!
container
)
return
;
...
...
@@ -1918,7 +1918,7 @@ HRESULT detach_event(EventTarget *event_target, BSTR name, IDispatch *disp)
return
S_OK
;
}
remove_event_listener
(
event_target
,
e
id
,
LISTENER_TYPE_ATTACHED
,
disp
);
remove_event_listener
(
event_target
,
e
vent_info
[
eid
].
name
,
LISTENER_TYPE_ATTACHED
,
disp
);
return
S_OK
;
}
...
...
@@ -2136,17 +2136,10 @@ static HRESULT WINAPI EventTarget_removeEventListener(IEventTarget *iface, BSTR
IDispatch
*
listener
,
VARIANT_BOOL
capture
)
{
EventTarget
*
This
=
impl_from_IEventTarget
(
iface
);
eventid_t
eid
;
TRACE
(
"(%p)->(%s %p %x)
\n
"
,
This
,
debugstr_w
(
type
),
listener
,
capture
);
eid
=
str_to_eid
(
type
);
if
(
eid
==
EVENTID_LAST
)
{
FIXME
(
"Unsupported on event %s
\n
"
,
debugstr_w
(
type
));
return
E_NOTIMPL
;
}
remove_event_listener
(
This
,
eid
,
capture
?
LISTENER_TYPE_CAPTURE
:
LISTENER_TYPE_BUBBLE
,
listener
);
remove_event_listener
(
This
,
type
,
capture
?
LISTENER_TYPE_CAPTURE
:
LISTENER_TYPE_BUBBLE
,
listener
);
return
S_OK
;
}
...
...
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