summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2026-02-09 20:57:17 -0500
committerGlenn Smith <glenn@vector35.com>2026-02-18 14:04:54 -0500
commit4793365011024408570534500752595720571911 (patch)
treeedf31f4614f1e56888c6e146dc964fa2055929e6 /python
parent5730756389247485689220739604918825879535 (diff)
Python API: Fix Platform.view_init
It was passing the cffi object not the api object
Diffstat (limited to 'python')
-rw-r--r--python/platform.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/platform.py b/python/platform.py
index 59f2e527..aab00461 100644
--- a/python/platform.py
+++ b/python/platform.py
@@ -175,7 +175,7 @@ class Platform(metaclass=_PlatformMetaClass):
def _view_init(self, ctxt, view):
try:
view_obj = binaryview.BinaryView(handle=core.BNNewViewReference(view))
- self.view_init(view)
+ self.view_init(view_obj)
except:
log_error_for_exception("Unhandled Python exception in Platform._view_init")