From a1818520dfb37596cc5a3f19f3e04412c4c66dca 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 f0fb822c..6b8d6f02 100644 --- a/bindings/python/capstone/capstone.py +++ b/bindings/python/capstone/capstone.py @@ -213,7 +213,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: