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
3d3574eb
Commit
3d3574eb
authored
Oct 10, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 13, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Pass the right 'this' argument to event handlers.
parent
28d918f5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
dispex.c
dlls/mshtml/dispex.c
+2
-2
htmlevent.c
dlls/mshtml/htmlevent.c
+2
-2
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-1
No files found.
dlls/mshtml/dispex.c
View file @
3d3574eb
...
...
@@ -296,7 +296,7 @@ static dispex_data_t *get_dispex_data(DispatchEx *This)
return
This
->
data
->
data
;
}
void
call_disp_func
(
HTMLDocument
*
doc
,
IDispatch
*
disp
)
void
call_disp_func
(
HTMLDocument
*
doc
,
IDispatch
*
disp
,
IDispatch
*
this_obj
)
{
DISPID
named_arg
=
DISPID_THIS
;
VARIANTARG
arg
;
...
...
@@ -313,7 +313,7 @@ void call_disp_func(HTMLDocument *doc, IDispatch *disp)
}
V_VT
(
&
arg
)
=
VT_DISPATCH
;
V_DISPATCH
(
&
arg
)
=
(
IDispatch
*
)
HTMLWINDOW2
(
doc
->
window
)
;
V_DISPATCH
(
&
arg
)
=
this_obj
;
VariantInit
(
&
res
);
memset
(
&
ei
,
0
,
sizeof
(
ei
));
...
...
dlls/mshtml/htmlevent.c
View file @
3d3574eb
...
...
@@ -436,7 +436,7 @@ void fire_event(HTMLDocument *doc, eventid_t eid, nsIDOMNode *target)
event_obj
=
doc
->
window
->
event
=
create_event
();
TRACE
(
"%s >>>
\n
"
,
debugstr_w
(
event_info
[
eid
].
name
));
call_disp_func
(
doc
,
node
->
event_target
->
event_table
[
eid
]);
call_disp_func
(
doc
,
node
->
event_target
->
event_table
[
eid
]
,
(
IDispatch
*
)
HTMLDOMNODE
(
node
)
);
TRACE
(
"%s <<<
\n
"
,
debugstr_w
(
event_info
[
eid
].
name
));
}
...
...
@@ -462,7 +462,7 @@ void fire_event(HTMLDocument *doc, eventid_t eid, nsIDOMNode *target)
event_obj
=
doc
->
window
->
event
=
create_event
();
TRACE
(
"doc %s >>>
\n
"
,
debugstr_w
(
event_info
[
eid
].
name
));
call_disp_func
(
doc
,
doc
->
event_target
->
event_table
[
eid
]);
call_disp_func
(
doc
,
doc
->
event_target
->
event_table
[
eid
]
,
(
IDispatch
*
)
HTMLDOC
(
doc
)
);
TRACE
(
"doc %s <<<
\n
"
,
debugstr_w
(
event_info
[
eid
].
name
));
}
...
...
dlls/mshtml/mshtml_private.h
View file @
3d3574eb
...
...
@@ -655,7 +655,7 @@ HRESULT clear_task_timer(HTMLDocument*,BOOL,DWORD);
HRESULT
get_typeinfo
(
tid_t
,
ITypeInfo
**
);
void
release_typelib
(
void
);
void
call_disp_func
(
HTMLDocument
*
,
IDispatch
*
);
void
call_disp_func
(
HTMLDocument
*
,
IDispatch
*
,
IDispatch
*
);
const
char
*
debugstr_variant
(
const
VARIANT
*
);
...
...
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