Commit 7fec7678 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

jscript: Fixed argument conversion in disp_call_value when 'this' is specified.

parent 3cd189c0
......@@ -1170,7 +1170,7 @@ HRESULT disp_call_value(script_ctx_t *ctx, IDispatch *disp, IDispatch *jsthis, W
}
for(i=0; i<argc; i++)
dp.rgvarg[argc-i-1] = argv[i];
dp.rgvarg[dp.cArgs-i-1] = argv[i];
if(jsthis) {
V_VT(dp.rgvarg) = VT_DISPATCH;
V_DISPATCH(dp.rgvarg) = jsthis;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment