[pkg-wine-party] [SCM] Debian Wine packaging branch, wheezy, updated. wine-1.4-7-302-gb61b690
Alexandre Julliard
julliard at winehq.org
Sun Jun 17 20:03:05 UTC 2012
The following commit has been merged in the wheezy branch:
commit 388d07c1081d590d5d940d7362234e612c2f017d
Author: Jacek Caban <jacek at codeweavers.com>
Date: Mon Apr 2 13:45:23 2012 +0200
jscript: Emit undefined statement return for switch without default clausule.
(cherry picked from commit 353553e0aa716e14ed5788fbc4818ffe23b99eba)
diff --git a/dlls/jscript/compile.c b/dlls/jscript/compile.c
index 8569c53..d0895a8 100644
--- a/dlls/jscript/compile.c
+++ b/dlls/jscript/compile.c
@@ -1515,8 +1515,11 @@ static HRESULT compile_switch_statement(compiler_ctx_t *ctx, switch_statement_t
return hres;
assert(i == case_cnt);
- if(!have_default)
+ if(!have_default) {
instr_ptr(ctx, default_jmp)->arg1.uint = ctx->code_off;
+ if(!push_instr(ctx, OP_undefined))
+ return E_OUTOFMEMORY;
+ }
label_set_addr(ctx, stat_ctx.break_label);
return S_OK;
--
Debian Wine packaging
More information about the pkg-wine-party
mailing list