Skip to content

Commit

Permalink
Bump version 0.7.18
Browse files Browse the repository at this point in the history
  • Loading branch information
ssrlive committed Dec 4, 2024
1 parent 5cdf426 commit 04823b0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 19 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wintun-bindings"
version = "0.7.17"
version = "0.7.18"
edition = "2021"
authors = [
"ssrlive",
Expand Down
24 changes: 6 additions & 18 deletions src/adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -430,18 +430,12 @@ pub(crate) fn delete_adapter_info_from_reg(dev_name: &str) -> std::io::Result<()
Ok(profile_name) => {
if dev_name == profile_name {
match profiles_key.delete_subkey_all(&sub_key_name) {
Ok(_) => {
log::info!("Successfully deleted Profiles sub_key: {}", sub_key_name)
}
Err(e) => {
log::warn!("Failed to delete Profiles sub_key {}: {}", sub_key_name, e)
}
Ok(_) => log::info!("Successfully deleted Profiles sub_key: {}", sub_key_name),
Err(e) => log::warn!("Failed to delete Profiles sub_key {}: {}", sub_key_name, e),
}
}
}
Err(e) => {
log::warn!("Failed to read ProfileName for sub_key {}: {}", sub_key_name, e);
}
Err(e) => log::warn!("Failed to read ProfileName for sub_key {}: {}", sub_key_name, e),
}
}
let unmanaged_key = hklm.open_subkey_with_flags(
Expand All @@ -454,18 +448,12 @@ pub(crate) fn delete_adapter_info_from_reg(dev_name: &str) -> std::io::Result<()
Ok(description) => {
if dev_name == description {
match unmanaged_key.delete_subkey_all(&sub_key_name) {
Ok(_) => {
log::info!("Successfully deleted Unmanaged sub_key: {}", sub_key_name)
}
Err(e) => {
log::warn!("Failed to delete Unmanaged sub_key {}: {}", sub_key_name, e)
}
Ok(_) => log::info!("Successfully deleted Unmanaged sub_key: {}", sub_key_name),
Err(e) => log::warn!("Failed to delete Unmanaged sub_key {}: {}", sub_key_name, e),
}
}
}
Err(e) => {
log::warn!("Failed to read Description for sub_key {}: {}", sub_key_name, e);
}
Err(e) => log::warn!("Failed to read Description for sub_key {}: {}", sub_key_name, e),
}
}
Ok(())
Expand Down

0 comments on commit 04823b0

Please sign in to comment.