Skip to content

Commit 299305f

Browse files
authored
Update windows crate version (#404)
* update windows crate version * fix build
1 parent 2477eb0 commit 299305f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ static_assertions = "1.1.0"
5454
criterion = { version = "0.5", features = ["html_reports"] }
5555

5656
[target.'cfg(target_os = "windows")'.dependencies.windows]
57-
version = "0.58.0"
57+
version = "0.61"
5858
features = [
5959
"Win32_Foundation",
6060
"Win32_System_WindowsProgramming",

src/platform/windows/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ use windows::{
5151
PIPE_READMODE_BYTE, PIPE_REJECT_REMOTE_CLIENTS, PIPE_TYPE_BYTE,
5252
},
5353
Threading::{
54-
CreateEventA, GetCurrentProcess, GetCurrentProcessId, OpenProcess, ResetEvent,
55-
INFINITE, PROCESS_DUP_HANDLE,
54+
CreateEventA, GetCurrentProcess, OpenProcess, ResetEvent, INFINITE,
55+
PROCESS_DUP_HANDLE,
5656
},
5757
IO::{
5858
CancelIoEx, CreateIoCompletionPort, GetOverlappedResult, GetOverlappedResultEx,
@@ -1014,7 +1014,7 @@ impl MessageReader {
10141014
let completion_key = self.handle.as_raw().0;
10151015
CreateIoCompletionPort(
10161016
self.handle.as_raw(),
1017-
iocp.as_raw(),
1017+
Some(iocp.as_raw()),
10181018
completion_key as usize,
10191019
0,
10201020
)?;

0 commit comments

Comments
 (0)