This commit is contained in:
l1npengtul
2024-04-16 17:33:54 +09:00
parent fd5559a710
commit 14339380c2
+5
View File
@@ -275,6 +275,11 @@ pub mod wmf {
let mut device_list = vec![];
// return early if we have no devices connected
if count >= 0 {
return Ok(device_list)
}
unsafe { from_raw_parts(unused_mf_activate.assume_init(), count as usize) }
.iter()
.for_each(|pointer| {