bump winreg version

This commit is contained in:
George
2026-03-22 21:59:50 +04:00
parent 2a28148cc0
commit 30facf50c3
3 changed files with 5 additions and 5 deletions

6
Cargo.lock generated
View File

@@ -3873,12 +3873,12 @@ dependencies = [
[[package]] [[package]]
name = "winreg" name = "winreg"
version = "0.55.0" version = "0.56.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cb5a765337c50e9ec252c2069be9bf91c7df47afb103b642ba3a53bf8101be97" checksum = "7d6f32a0ff4a9f6f01231eb2059cc85479330739333e0e58cadf03b6af2cca10"
dependencies = [ dependencies = [
"cfg-if 1.0.4", "cfg-if 1.0.4",
"windows-sys 0.59.0", "windows-sys 0.61.2",
] ]
[[package]] [[package]]

View File

@@ -21,7 +21,7 @@ winit = "0.30.13"
[target.'cfg(target_os = "windows")'.dependencies] [target.'cfg(target_os = "windows")'.dependencies]
image = "0.25.10" image = "0.25.10"
winreg = "0.55.0" winreg = "0.56.0"
windows = { version = "0.62.2", features = [ windows = { version = "0.62.2", features = [
"Win32_System_LibraryLoader", "Win32_System_LibraryLoader",
] } ] }

View File

@@ -385,7 +385,7 @@ fn set_startup_approved_state(enabled: bool) -> std::io::Result<()> {
STARTUP_VALUE_NAME, STARTUP_VALUE_NAME,
&RegValue { &RegValue {
vtype: RegType::REG_BINARY, 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(()) Ok(())