Jacek Caban : mshtml: Don't use IDispatchEx for timer callbacks.

Alexandre Julliard julliard at winehq.org
Fri Oct 10 08:06:43 CDT 2008


Module: wine
Branch: master
Commit: 37b7a217f3e79d65d10ee12ee1d1d31bdf282e90
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=37b7a217f3e79d65d10ee12ee1d1d31bdf282e90

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Thu Oct  9 15:33:50 2008 -0500

mshtml: Don't use IDispatchEx for timer callbacks.

---

 dlls/mshtml/task.c |   16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)

diff --git a/dlls/mshtml/task.c b/dlls/mshtml/task.c
index a1c8da9..ffef543 100644
--- a/dlls/mshtml/task.c
+++ b/dlls/mshtml/task.c
@@ -365,6 +365,20 @@ static void process_task(task_t *task)
     }
 }
 
+static void call_timer_disp(IDispatch *disp)
+{
+    DISPPARAMS dp = {NULL, NULL, 0, 0};
+    EXCEPINFO ei;
+    VARIANT res;
+    HRESULT hres;
+
+    V_VT(&res) = VT_EMPTY;
+    memset(&ei, 0, sizeof(ei));
+    hres = IDispatch_Invoke(disp, DISPID_VALUE, &IID_NULL, 0, DISPATCH_METHOD, &dp, &res, &ei, NULL);
+    TRACE("ret %08x %s\n", hres, debugstr_variant(&res));
+    VariantClear(&res);
+}
+
 static LRESULT process_timer(void)
 {
     thread_data_t *thread_data = get_thread_data(TRUE);
@@ -395,7 +409,7 @@ static LRESULT process_timer(void)
             release_task_timer(thread_data->thread_hwnd, timer);
         }
 
-        call_disp_func(doc, disp);
+        call_timer_disp(disp);
 
         IDispatch_Release(disp);
     }




More information about the wine-cvs mailing list