vbscript: Added support for VT_BYREF|VT_VARIANT to to_int.

This commit is contained in:
Jacek Caban 2013-11-22 16:48:23 +01:00 committed by Alexandre Julliard
parent ddcd19cf63
commit d222521989
2 changed files with 6 additions and 1 deletions

View File

@ -152,6 +152,9 @@ static inline HRESULT return_date(VARIANT *res, double date)
HRESULT to_int(VARIANT *v, int *ret)
{
if(V_VT(v) == (VT_BYREF|VT_VARIANT))
v = V_VARIANTREF(v);
switch(V_VT(v)) {
case VT_I2:
*ret = V_I2(v);

View File

@ -964,7 +964,6 @@ Class Property2
Function Property()
End Function
Sub Test(property)
End Sub
@ -1042,4 +1041,7 @@ for x=1 to 1
forarr(1) = x+1
next
x=1
Call ok(forarr(x) = 2, "forarr(x) = " & forarr(x))
reportSuccess()