diff --git a/ctru-rs/src/services/uds.rs b/ctru-rs/src/services/uds.rs index 566dba8..8b6caf0 100644 --- a/ctru-rs/src/services/uds.rs +++ b/ctru-rs/src/services/uds.rs @@ -343,7 +343,7 @@ impl Uds { ResultCode(unsafe { ctru_sys::udsScanBeacons( - scan_buf.as_mut_ptr().cast(), + self.scan_buf.as_mut_ptr().cast(), Self::SCAN_BUF_SIZE, networks.as_mut_ptr(), total_networks.as_mut_ptr(), @@ -356,10 +356,6 @@ impl Uds { ) })?; - unsafe { - scan_buf.assume_init_drop(); - } - let networks = unsafe { networks.assume_init() }; let total_networks = unsafe { total_networks.assume_init() };