From 999a56de15ce8b5b4699fe024ba5d77a43fe4f3e Mon Sep 17 00:00:00 2001 From: kat Date: Tue, 25 Apr 2023 11:44:12 -0400 Subject: Fix a minor error in BinaryDataNotifications for Components --- python/binaryview.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python') 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()) -- cgit v1.3.1