diff --git a/plugins/deep-link/src/lib.rs b/plugins/deep-link/src/lib.rs index 7a3da59f..30584df5 100644 --- a/plugins/deep-link/src/lib.rs +++ b/plugins/deep-link/src/lib.rs @@ -408,7 +408,10 @@ mod imp { #[cfg(windows)] { let protocol = _protocol.as_ref(); - let cmd_reg = CLASSES_ROOT.open(format!("{protocol}\\shell\\open\\command"))?; + let Ok(cmd_reg) = CLASSES_ROOT.open(format!("{protocol}\\shell\\open\\command")) + else { + return Ok(false); + }; let registered_cmd = cmd_reg.get_string("")?;