diff --git a/Cargo.lock b/Cargo.lock index 43785d6..4787538 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3873,12 +3873,12 @@ dependencies = [ [[package]] name = "winreg" -version = "0.55.0" +version = "0.56.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb5a765337c50e9ec252c2069be9bf91c7df47afb103b642ba3a53bf8101be97" +checksum = "7d6f32a0ff4a9f6f01231eb2059cc85479330739333e0e58cadf03b6af2cca10" dependencies = [ "cfg-if 1.0.4", - "windows-sys 0.59.0", + "windows-sys 0.61.2", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 00a1bf5..41c3dd8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,7 @@ winit = "0.30.13" [target.'cfg(target_os = "windows")'.dependencies] image = "0.25.10" -winreg = "0.55.0" +winreg = "0.56.0" windows = { version = "0.62.2", features = [ "Win32_System_LibraryLoader", ] } diff --git a/src/status_tray_not_linux.rs b/src/status_tray_not_linux.rs index d14c224..aabcb87 100644 --- a/src/status_tray_not_linux.rs +++ b/src/status_tray_not_linux.rs @@ -385,7 +385,7 @@ fn set_startup_approved_state(enabled: bool) -> std::io::Result<()> { STARTUP_VALUE_NAME, &RegValue { vtype: RegType::REG_BINARY, - bytes: vec![state, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], + bytes: vec![state, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0].into(), }, )?; Ok(())