diff options
Diffstat (limited to '')
| -rw-r--r-- | miasm2/arch/x86/jit.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm2/arch/x86/jit.py b/miasm2/arch/x86/jit.py index e64c610b..aa01359a 100644 --- a/miasm2/arch/x86/jit.py +++ b/miasm2/arch/x86/jit.py @@ -152,12 +152,12 @@ class jitter_x86_32(jitter): def func_prepare_fastcall(self, ret_addr, *args): args_regs = ['ECX', 'EDX'] - self.push_uint32_t(ret_addr) for i in xrange(min(len(args), len(args_regs))): setattr(self.cpu, args_regs[i], args[i]) remaining_args = args[len(args_regs):] for arg in reversed(remaining_args): self.push_uint32_t(arg) + self.push_uint32_t(ret_addr) def get_arg_n_fastcall(self, index): args_regs = ['ECX', 'EDX'] |