From 6b0e2c8fdff9dd316762e5f83ea5733f3eb8ae82 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Tue, 12 Feb 2013 14:36:48 +0100 Subject: [PATCH] mshtml: Use VT_ERROR as return type in DispCallFunc call. --- dlls/mshtml/dispex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/mshtml/dispex.c b/dlls/mshtml/dispex.c index ed799d2e749..38d9df43b53 100644 --- a/dlls/mshtml/dispex.c +++ b/dlls/mshtml/dispex.c @@ -1066,7 +1066,7 @@ static HRESULT invoke_builtin_function(DispatchEx *This, func_info_t *func, DISP } V_VT(&vhres) = VT_ERROR; - hres = DispCallFunc(iface, func->call_vtbl_off*sizeof(void*), CC_STDCALL, VT_HRESULT, + hres = DispCallFunc(iface, func->call_vtbl_off*sizeof(void*), CC_STDCALL, VT_ERROR, func->argc + (func->prop_vt == VT_VOID ? 0 : 1), func->arg_types, arg_ptrs, &vhres); }