diff options
Diffstat (limited to 'rust/src/custombinaryview.rs')
| -rw-r--r-- | rust/src/custombinaryview.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rust/src/custombinaryview.rs b/rust/src/custombinaryview.rs index 48274fe4..645f5fd4 100644 --- a/rust/src/custombinaryview.rs +++ b/rust/src/custombinaryview.rs @@ -49,7 +49,7 @@ where { ffi_wrap!("BinaryViewTypeBase::is_valid_for", unsafe { let view_type = &*(ctxt as *mut T); - let data = BinaryView::from_raw(data); + let data = BinaryView::from_raw(BNNewViewReference(data)); view_type.is_valid_for(&data) }) @@ -61,7 +61,7 @@ where { ffi_wrap!("BinaryViewTypeBase::create", unsafe { let view_type = &*(ctxt as *mut T); - let data = BinaryView::from_raw(data); + let data = BinaryView::from_raw(BNNewViewReference(data)); let builder = CustomViewBuilder { view_type: view_type, @@ -94,7 +94,7 @@ where { ffi_wrap!("BinaryViewTypeBase::load_settings", unsafe { let view_type = &*(ctxt as *mut T); - let data = BinaryView::from_raw(data); + let data = BinaryView::from_raw(BNNewViewReference(data)); match view_type.load_settings_for_data(&data) { Ok(settings) => Ref::into_raw(settings).handle, |
