mshtml: Don't use IDispatchEx for timer callbacks.
authorJacek Caban <jacek@codeweavers.com>
Thu, 9 Oct 2008 20:33:50 +0000 (15:33 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 10 Oct 2008 10:55:59 +0000 (12:55 +0200)
dlls/mshtml/task.c

index a1c8da98402c7c92d3a66fa22e652896f099c5b4..ffef5434ab0e213dbd1f5a3e4af5624e75e8961f 100644 (file)
@@ -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);
     }