vbscript: Support VT_EMPTY in stack_pop_bool.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
stable
Jacek Caban 2019-10-31 19:16:01 +01:00 committed by Alexandre Julliard
parent a20555ea5f
commit 18117ccbab
2 changed files with 9 additions and 0 deletions

View File

@ -374,6 +374,7 @@ static int stack_pop_bool(exec_ctx_t *ctx, BOOL *b)
*b = V_BOOL(val.v);
break;
case VT_NULL:
case VT_EMPTY:
*b = FALSE;
break;
case VT_I2:

View File

@ -329,6 +329,14 @@ end if
while false
wend
if empty then
ok false, "if empty executed"
end if
while empty
ok false, "while empty executed"
wend
x = 0
WHILE x < 3 : x = x + 1
Wend