Module: wine Branch: master Commit: 6b0e2c8fdff9dd316762e5f83ea5733f3eb8ae82 URL: http://source.winehq.org/git/wine.git/?a=commit;h=6b0e2c8fdff9dd316762e5f83e...
Author: Jacek Caban jacek@codeweavers.com Date: Tue Feb 12 14:36:48 2013 +0100
mshtml: Use VT_ERROR as return type in DispCallFunc call.
---
dlls/mshtml/dispex.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/mshtml/dispex.c b/dlls/mshtml/dispex.c index ed799d2..38d9df4 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); }