Skip to content

Commit 7a47493

Browse files
committed
framework_lib: Update to new windows-rs APIs
Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent 01f55a8 commit 7a47493

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

framework_lib/src/chromium_ec/windows.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use std::sync::{Arc, Mutex};
44
#[allow(unused_imports)]
55
use windows::{
66
core::*,
7-
w,
87
Win32::Foundation::*,
98
Win32::{
109
Storage::FileSystem::*,
@@ -30,7 +29,7 @@ fn init() {
3029
*device = Some(
3130
CreateFileW(
3231
path,
33-
FILE_GENERIC_READ | FILE_GENERIC_WRITE,
32+
FILE_GENERIC_READ.0 | FILE_GENERIC_WRITE.0,
3433
FILE_SHARE_READ | FILE_SHARE_WRITE,
3534
None,
3635
OPEN_EXISTING,

0 commit comments

Comments
 (0)