diff --git a/Cargo.lock b/Cargo.lock index 64d4bd4a..f8f37211 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -490,7 +490,7 @@ dependencies = [ "tempfile", "typenum", "url", - "windows-sys 0.52.0", + "windows-sys 0.59.0", "xz2", "zip", "zstd", diff --git a/Cargo.toml b/Cargo.toml index 5fefdb70..89c13789 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -119,7 +119,7 @@ version = "0.4" optional = true [target.'cfg(windows)'.dependencies.windows-sys] -version = "0.52" +version = "0.59" features = ["Win32_Foundation"] [target.'cfg(not(windows))'.dependencies.xz2] diff --git a/src/main.rs b/src/main.rs index 8d19727b..91a8056d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1944,7 +1944,7 @@ fn do_self_update( #[cfg(windows)] { use Win32::Foundation::HANDLE; - let mut handle: HANDLE = 0; + let mut handle: HANDLE = std::ptr::null_mut(); let curproc = unsafe { Win32::System::Threading::GetCurrentProcess() }; if unsafe { Win32::Foundation::DuplicateHandle(