mirror of
https://github.com/l1npengtul/nokhwa.git
synced 2026-07-04 02:27:26 +00:00
fix #166
This commit is contained in:
@@ -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| {
|
||||
|
||||
Reference in New Issue
Block a user