summaryrefslogtreecommitdiff
path: root/python/binaryview.py
diff options
context:
space:
mode:
authorkat <kat@vector35.com>2023-04-25 11:44:12 -0400
committerkat <kat@vector35.com>2023-04-25 11:44:12 -0400
commit999a56de15ce8b5b4699fe024ba5d77a43fe4f3e (patch)
tree8ba40146eb124793ce800a73495979f43ca40ef6 /python/binaryview.py
parent2933836357591583002564916825596082211523 (diff)
Fix a minor error in BinaryDataNotifications for Components
Diffstat (limited to 'python/binaryview.py')
-rw-r--r--python/binaryview.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/binaryview.py b/python/binaryview.py
index 39908e49..250bd8fe 100644
--- a/python/binaryview.py
+++ b/python/binaryview.py
@@ -854,7 +854,7 @@ class BinaryDataNotificationCallbacks:
component_handle = core.BNNewComponentReference(_component)
assert component_handle is not None, "core.BNNewComponentReference returned None"
result = component.Component(component_handle)
- self._notify.component_data_var_added(self._view, result, DataVariable.from_core_struct(var[0], self._view))
+ self._notify.component_data_var_added(self._view, result, DataVariable.from_core_struct(var, self._view))
except:
log_error(traceback.format_exc())
@@ -864,7 +864,7 @@ class BinaryDataNotificationCallbacks:
component_handle = core.BNNewComponentReference(_component)
assert component_handle is not None, "core.BNNewComponentReference returned None"
result = component.Component(component_handle)
- self._notify.component_data_var_removed(self._view, result, DataVariable.from_core_struct(var[0], self._view))
+ self._notify.component_data_var_removed(self._view, result, DataVariable.from_core_struct(var, self._view))
except:
log_error(traceback.format_exc())