python: fix uc_option() setup

This commit is contained in:
Nguyen Anh Quynh 2016-03-22 14:35:22 +08:00
parent 8336852e81
commit 1b16b5e8fe

View file

@ -110,7 +110,7 @@ _setup_prototype(_uc, "uc_mem_map_ptr", ucerr, uc_engine, ctypes.c_uint64, ctype
_setup_prototype(_uc, "uc_mem_unmap", ucerr, uc_engine, ctypes.c_uint64, ctypes.c_size_t)
_setup_prototype(_uc, "uc_mem_protect", ucerr, uc_engine, ctypes.c_uint64, ctypes.c_size_t, ctypes.c_uint32)
_setup_prototype(_uc, "uc_query", ucerr, uc_engine, ctypes.c_uint32, ctypes.POINTER(ctypes.c_size_t))
_setup_prototype(_ks, "uc_option", ucerr, uc_engine, c_int, c_void_p)
_setup_prototype(_uc, "uc_option", ucerr, uc_engine, c_int, c_void_p)
# uc_hook_add is special due to variable number of arguments
_uc.uc_hook_add = getattr(_uc, "uc_hook_add")