diff --git a/src/host/wasapi/device.rs b/src/host/wasapi/device.rs index 20e594b..a510f4e 100644 --- a/src/host/wasapi/device.rs +++ b/src/host/wasapi/device.rs @@ -358,8 +358,7 @@ impl Device { let err = BackendSpecificError { description }; return Err(err.into()); } - let ptr_usize: usize = *(&property_value.data as *const _ as *const usize); - let ptr_utf16 = ptr_usize as *const u16; + let ptr_utf16 = *(&property_value.data as *const _ as *const (*const u16)); // Find the length of the friendly name. let mut len = 0; diff --git a/src/host/wasapi/stream.rs b/src/host/wasapi/stream.rs index 495a59f..6d1e4ee 100644 --- a/src/host/wasapi/stream.rs +++ b/src/host/wasapi/stream.rs @@ -224,7 +224,6 @@ fn wait_for_handle_signal(handles: &[winnt::HANDLE]) -> Result= winbase::WAIT_OBJECT_0); let handle_idx = (result - winbase::WAIT_OBJECT_0) as usize; Ok(handle_idx) }