Jacek Caban : vbscript: Store required stack offset before doing jump.

Alexandre Julliard julliard at winehq.org
Tue Mar 25 14:27:44 CDT 2014


Module: wine
Branch: master
Commit: f6d6238e935808298362bfbc02985d9b5cc4db14
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f6d6238e935808298362bfbc02985d9b5cc4db14

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Tue Mar 25 14:58:41 2014 +0100

vbscript: Store required stack offset before doing jump.

---

 dlls/vbscript/interp.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/vbscript/interp.c b/dlls/vbscript/interp.c
index a9c8766..4be96a2 100644
--- a/dlls/vbscript/interp.c
+++ b/dlls/vbscript/interp.c
@@ -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);
 
-                instr_jmp(&exec, exec.instr->arg1.uint);
-
                 stack_off = exec.instr->arg2.uint;
+                instr_jmp(&exec, exec.instr->arg1.uint);
 
                 if(exec.top > stack_off) {
                     stack_popn(&exec, exec.top-stack_off);




More information about the wine-cvs mailing list