deps: upgrade windows-sys from 0.52 to 0.59 (#7117)

This commit is contained in:
Erich Gubler
2025-07-07 17:49:12 +00:00
committed by GitHub
parent 71cc9ab4c2
commit aff24dfbeb
4 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ httpdate = "1.0"
once_cell = "1.5.2"
[target.'cfg(windows)'.dev-dependencies.windows-sys]
version = "0.52"
version = "0.59"
[[example]]
name = "chat"
+2 -2
View File
@@ -123,11 +123,11 @@ libc = { version = "0.2.168" }
nix = { version = "0.29.0", default-features = false, features = ["aio", "fs", "socket"] }
[target.'cfg(windows)'.dependencies.windows-sys]
version = "0.52"
version = "0.59"
optional = true
[target.'cfg(windows)'.dev-dependencies.windows-sys]
version = "0.52"
version = "0.59"
features = [
"Win32_Foundation",
"Win32_Security_Authorization",
+2 -1
View File
@@ -7,6 +7,7 @@ use std::ffi::OsStr;
use std::io::{self, Read, Write};
use std::pin::Pin;
use std::ptr;
use std::ptr::null_mut;
use std::task::{Context, Poll};
use crate::io::{AsyncRead, AsyncWrite, Interest, PollEvented, ReadBuf, Ready};
@@ -2556,7 +2557,7 @@ impl ClientOptions {
attrs as *mut _,
windows_sys::OPEN_EXISTING,
self.get_flags(),
0,
null_mut(),
);
if h == windows_sys::INVALID_HANDLE_VALUE {
+2 -1
View File
@@ -28,6 +28,7 @@ use std::os::windows::prelude::{AsRawHandle, IntoRawHandle, OwnedHandle, RawHand
use std::pin::Pin;
use std::process::Stdio;
use std::process::{Child as StdChild, ExitStatus};
use std::ptr::null_mut;
use std::sync::Arc;
use std::task::{Context, Poll};
@@ -119,7 +120,7 @@ impl Future for Child {
}
let (tx, rx) = oneshot::channel();
let ptr = Box::into_raw(Box::new(Some(tx)));
let mut wait_object = 0;
let mut wait_object = null_mut();
let rc = unsafe {
RegisterWaitForSingleObject(
&mut wait_object,