Module: wine Branch: master Commit: 4ca8447769449a2b36baa188d53ed68ba1159402 URL: http://source.winehq.org/git/wine.git/?a=commit;h=4ca8447769449a2b36baa188d5...
Author: Jacek Caban jacek@codeweavers.com Date: Tue Jul 3 17:05:16 2012 +0200
vbscript: Skip the first (null) instruction in dump_code.
---
dlls/vbscript/compile.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/vbscript/compile.c b/dlls/vbscript/compile.c index 28d1280..a5a232e 100644 --- a/dlls/vbscript/compile.c +++ b/dlls/vbscript/compile.c @@ -98,7 +98,8 @@ static void dump_code(compile_ctx_t *ctx) { instr_t *instr;
- for(instr = ctx->code->instrs; instr < ctx->code->instrs+ctx->instr_cnt; instr++) { + for(instr = ctx->code->instrs+1; instr < ctx->code->instrs+ctx->instr_cnt; instr++) { + assert(instr->op < OP_LAST); TRACE_(vbscript_disas)("%d:\t%s", (int)(instr-ctx->code->instrs), instr_info[instr->op].op_str); dump_instr_arg(instr_info[instr->op].arg1_type, &instr->arg1); dump_instr_arg(instr_info[instr->op].arg2_type, &instr->arg2);