Commit 2d752d1a authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

jscript: Fixed uninitialized variable access in interp_end_finally.

parent 65887802
...@@ -795,18 +795,17 @@ static HRESULT interp_end_finally(exec_ctx_t *ctx) ...@@ -795,18 +795,17 @@ static HRESULT interp_end_finally(exec_ctx_t *ctx)
TRACE("\n"); TRACE("\n");
assert(is_bool(stack_top(ctx))); v = stack_pop(ctx);
if(!get_bool(stack_top(ctx))) { assert(is_bool(v));
TRACE("passing exception\n");
jsval_release(v); if(!get_bool(v)) {
stack_popn(ctx, 1); TRACE("passing exception\n");
ctx->script->ei.val = stack_pop(ctx); ctx->script->ei.val = stack_pop(ctx);
return DISP_E_EXCEPTION; return DISP_E_EXCEPTION;
} }
stack_popn(ctx, 2); stack_pop(ctx);
return S_OK; return S_OK;
} }
......
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