python: correct the last commit to fix cs_disasm_quick()

_v3_old
Nguyen Anh Quynh 11 years ago
parent e71abd4666
commit 5f0c6869ca
  1. 2
      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:

Loading…
Cancel
Save