diff --git a/Cargo.lock b/Cargo.lock index 3f3afa7599..9e3b786bcd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1525,7 +1525,7 @@ dependencies = [ "widestring 1.1.0", "winapi", "windows-acl", - "windows-sys 0.52.0", + "windows-sys 0.59.0", "xz2", ] @@ -4483,6 +4483,15 @@ dependencies = [ "windows-targets 0.52.6", ] +[[package]] +name = "windows-sys" +version = "0.59.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" +dependencies = [ + "windows-targets 0.52.6", +] + [[package]] name = "windows-targets" version = "0.48.5" diff --git a/components/core/Cargo.toml b/components/core/Cargo.toml index 56eebb7158..a5f8e929d8 100644 --- a/components/core/Cargo.toml +++ b/components/core/Cargo.toml @@ -66,7 +66,7 @@ winapi = { version = "^0.3", features = [ "ws2def", ] } windows-acl = "*" -windows-sys = { version = "^0.52.0", features = [ +windows-sys = { version = "^0.59.0", features = [ "Win32_Foundation", "Win32_System_Environment", ] } diff --git a/components/core/src/os/process/windows_child.rs b/components/core/src/os/process/windows_child.rs index 47a30b4d25..fd367559d9 100644 --- a/components/core/src/os/process/windows_child.rs +++ b/components/core/src/os/process/windows_child.rs @@ -994,7 +994,7 @@ fn create_user_environment(token: HANDLE, let mut new_env: Vec = Vec::new(); let mut block = ptr::null_mut(); cvt(Environment::CreateEnvironmentBlock(&mut block, - token as isize, + token as *mut std::ffi::c_void, FALSE))?; let mut tail: u32 = MAXDWORD; let mut offset = 0;