Skip to content

Commit 4793365

Browse files
committed
Python API: Fix Platform.view_init
It was passing the cffi object not the api object
1 parent 5730756 commit 4793365

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/platform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def _init(self, ctxt):
175175
def _view_init(self, ctxt, view):
176176
try:
177177
view_obj = binaryview.BinaryView(handle=core.BNNewViewReference(view))
178-
self.view_init(view)
178+
self.view_init(view_obj)
179179
except:
180180
log_error_for_exception("Unhandled Python exception in Platform._view_init")
181181

0 commit comments

Comments
 (0)