summaryrefslogtreecommitdiff
path: root/python/binaryview.py
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2021-12-27 15:18:11 -0500
committerGlenn Smith <glenn@vector35.com>2022-01-17 20:42:14 -0500
commitdc2a99e1159c3951b91935490ec8d2da5fc8e1e7 (patch)
tree4607977204491728a76e173640a306e14808b1b3 /python/binaryview.py
parentfec5a962870a4a2a446b25c6256a5ba54c1f8f83 (diff)
Make various database progress functions cancellable
Diffstat (limited to 'python/binaryview.py')
-rw-r--r--python/binaryview.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/binaryview.py b/python/binaryview.py
index 03b1f9e7..b02f5d1a 100644
--- a/python/binaryview.py
+++ b/python/binaryview.py
@@ -6757,7 +6757,7 @@ class BinaryView:
if progress_func is None:
result = core.BNRebase(self.handle, address)
else:
- result = core.BNRebaseWithProgress(self.handle, address, None, ctypes.CFUNCTYPE(None, ctypes.c_void_p, ctypes.c_ulonglong, ctypes.c_ulonglong)(
+ result = core.BNRebaseWithProgress(self.handle, address, None, ctypes.CFUNCTYPE(ctypes.c_bool, ctypes.c_void_p, ctypes.c_ulonglong, ctypes.c_ulonglong)(
lambda ctxt, cur, total: progress_func(cur, total)))
if result:
return self.get_view_of_type(self.view_type)