vbscript: Store required stack offset before doing jump.

This commit is contained in:
Jacek Caban 2014-03-25 14:58:41 +01:00 committed by Alexandre Julliard
parent 8fb52c7c5d
commit f6d6238e93
1 changed files with 1 additions and 2 deletions

View File

@ -2124,9 +2124,8 @@ HRESULT exec_script(script_ctx_t *ctx, function_t *func, vbdisp_t *vbthis, DISPP
TRACE("unwind jmp %d stack_off %d\n", exec.instr->arg1.uint, exec.instr->arg2.uint); TRACE("unwind jmp %d stack_off %d\n", exec.instr->arg1.uint, exec.instr->arg2.uint);
instr_jmp(&exec, exec.instr->arg1.uint);
stack_off = exec.instr->arg2.uint; stack_off = exec.instr->arg2.uint;
instr_jmp(&exec, exec.instr->arg1.uint);
if(exec.top > stack_off) { if(exec.top > stack_off) {
stack_popn(&exec, exec.top-stack_off); stack_popn(&exec, exec.top-stack_off);