From 5f0c6869cae9dd1ac3bbd6d5e30dba994b87e56d Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Fri, 20 Dec 2013 18:55:03 +0800 Subject: [PATCH] python: correct the last commit to fix cs_disasm_quick() --- bindings/python/capstone/capstone.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/python/capstone/capstone.py b/bindings/python/capstone/capstone.py index 9c8a3d13..7d4f4540 100644 --- a/bindings/python/capstone/capstone.py +++ b/bindings/python/capstone/capstone.py @@ -215,7 +215,7 @@ def cs_disasm_quick(arch, mode, code, offset, count = 0): res = _cs.cs_disasm_dyn(csh, code, len(code), offset, count, ctypes.byref(all_insn)) if res > 0: for i in xrange(res): - insns.append(CsInsn(self.csh, all_insn[i], self.arch)) + insns.append(CsInsn(csh, all_insn[i], arch)) _cs.cs_free(all_insn) else: