Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
1eced605
Commit
1eced605
authored
Jun 19, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 21, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Check if event_table entry is allocated before using it in remove_event_handler.
parent
c00121a6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
htmlevent.c
dlls/mshtml/htmlevent.c
+1
-1
events.c
dlls/mshtml/tests/events.c
+4
-0
No files found.
dlls/mshtml/htmlevent.c
View file @
1eced605
...
...
@@ -1077,7 +1077,7 @@ static HRESULT ensure_nsevent_handler(HTMLDocumentNode *doc, event_target_t *eve
static
HRESULT
remove_event_handler
(
event_target_t
**
event_target
,
eventid_t
eid
)
{
if
(
*
event_target
&&
(
*
event_target
)
->
event_table
[
eid
]
->
handler_prop
)
{
if
(
*
event_target
&&
(
*
event_target
)
->
event_table
[
eid
]
&&
(
*
event_target
)
->
event_table
[
eid
]
->
handler_prop
)
{
IDispatch_Release
((
*
event_target
)
->
event_table
[
eid
]
->
handler_prop
);
(
*
event_target
)
->
event_table
[
eid
]
->
handler_prop
=
NULL
;
}
...
...
dlls/mshtml/tests/events.c
View file @
1eced605
...
...
@@ -1172,6 +1172,10 @@ static void test_onclick(IHTMLDocument2 *doc)
hres
=
IHTMLElement_put_onclick
(
div
,
v
);
ok
(
hres
==
S_OK
,
"put_onclick failed: %08x
\n
"
,
hres
);
V_VT
(
&
v
)
=
VT_NULL
;
hres
=
IHTMLElement_put_ondblclick
(
div
,
v
);
ok
(
hres
==
S_OK
,
"put_ondblclick failed: %08x
\n
"
,
hres
);
V_VT
(
&
v
)
=
VT_EMPTY
;
hres
=
IHTMLElement_get_onclick
(
div
,
&
v
);
ok
(
hres
==
S_OK
,
"get_onclick failed: %08x
\n
"
,
hres
);
...
...
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