jscript: Support VT_UI8 in variant_to_jsval.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2017-12-05 18:24:41 +01:00 committed by Alexandre Julliard
parent 7225e60108
commit d2213e205b
1 changed files with 7 additions and 0 deletions

View File

@ -306,6 +306,13 @@ HRESULT variant_to_jsval(VARIANT *var, jsval_t *r)
case VT_UI4:
*r = jsval_number(V_UI4(var));
return S_OK;
case VT_UI8:
/*
* Native doesn't support VT_UI8 here, but it's needed for IE9+ APIs
* (native IE9 doesn't use jscript.dll for JavaScript).
*/
*r = jsval_number(V_UI8(var));
return S_OK;
case VT_R4:
*r = jsval_number(V_R4(var));
return S_OK;