Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

fix(shell): check kv in `update_install_option` (#14564)

fufesou285e29d2dc0d
diff --git a/src/platform/windows.rs b/src/platform/windows.rs
index ee8aa7c6f..b579891f1 100644
--- a/src/platform/windows.rs
+++ b/src/platform/windows.rs
@@ -2029,6 +2029,9 @@ pub fn update_install_option(k: &str, v: &str) -> ResultType<()> {
if !is_installed() || !crate::is_server() {
return Ok(());
}
+ if ![REG_NAME_INSTALL_PRINTER].contains(&k) || !["0", "1"].contains(&v) {
+ return Ok(());
+ }
let app_name = crate::get_app_name();
let ext = app_name.to_lowercase();
let cmds =