Jacek Caban : mshtml: Call attached event handlers in reversed order.
Alexandre Julliard
julliard at winehq.org
Mon Jan 25 11:21:07 CST 2010
Module: wine
Branch: master
Commit: 8571bf6f0e148dbd659b63102a7ffec9ea7362f8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8571bf6f0e148dbd659b63102a7ffec9ea7362f8
Author: Jacek Caban <jacek at codeweavers.com>
Date: Sun Jan 24 21:37:15 2010 +0100
mshtml: Call attached event handlers in reversed order.
---
dlls/mshtml/htmlevent.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/mshtml/htmlevent.c b/dlls/mshtml/htmlevent.c
index d04b2e6..5184391 100644
--- a/dlls/mshtml/htmlevent.c
+++ b/dlls/mshtml/htmlevent.c
@@ -816,7 +816,7 @@ static void call_event_handlers(HTMLDocumentNode *doc, IHTMLEventObj *event_obj,
ConnectionPointContainer *cp_container, eventid_t eid, IDispatch *this_obj)
{
handler_vector_t *handler_vector = NULL;
- DWORD i;
+ int i;
HRESULT hres;
if(event_target)
@@ -845,7 +845,8 @@ static void call_event_handlers(HTMLDocumentNode *doc, IHTMLEventObj *event_obj,
V_VT(&arg) = VT_DISPATCH;
V_DISPATCH(&arg) = (IDispatch*)event_obj;
- for(i=0; i < handler_vector->handler_cnt; i++) {
+ i = handler_vector->handler_cnt;
+ while(i--) {
if(handler_vector->handlers[i]) {
TRACE("%s [%d] >>>\n", debugstr_w(event_info[eid].name), i);
hres = call_disp_func(handler_vector->handlers[i], &dp);
More information about the wine-cvs
mailing list