vbscript: Added support for VT_NULL in stack_pop_bool.

This commit is contained in:
Jacek Caban 2012-09-10 10:35:29 +02:00 committed by Alexandre Julliard
parent 167174d88b
commit 81766a740e
2 changed files with 9 additions and 0 deletions

View File

@ -373,6 +373,9 @@ static int stack_pop_bool(exec_ctx_t *ctx, BOOL *b)
case VT_BOOL:
*b = V_BOOL(val.v);
break;
case VT_NULL:
*b = FALSE;
break;
case VT_I2:
*b = V_I2(val.v);
break;

View File

@ -434,6 +434,12 @@ do while true
next
loop
if null then call ok(false, "if null evaluated")
while null
call ok(false, "while null evaluated")
wend
Call collectionObj.reset()
y = 0
x = 10