mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-15 23:57:16 +00:00
jscript: Fixed uninitialized variable access in interp_end_finally.
This commit is contained in:
parent
65887802c5
commit
2d752d1a93
|
@ -795,18 +795,17 @@ static HRESULT interp_end_finally(exec_ctx_t *ctx)
|
|||
|
||||
TRACE("\n");
|
||||
|
||||
assert(is_bool(stack_top(ctx)));
|
||||
if(!get_bool(stack_top(ctx))) {
|
||||
TRACE("passing exception\n");
|
||||
v = stack_pop(ctx);
|
||||
assert(is_bool(v));
|
||||
|
||||
jsval_release(v);
|
||||
stack_popn(ctx, 1);
|
||||
if(!get_bool(v)) {
|
||||
TRACE("passing exception\n");
|
||||
|
||||
ctx->script->ei.val = stack_pop(ctx);
|
||||
return DISP_E_EXCEPTION;
|
||||
}
|
||||
|
||||
stack_popn(ctx, 2);
|
||||
stack_pop(ctx);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue