main: use correct subkey path for `set_lark_path()`

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2021-05-19 10:21:21 +08:00
parent 377e3a2584
commit b43f2e0c5d
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ fn set_lark_path(new_path: &Path) -> std::io::Result<()> {
use winreg::enums::*;
use winreg::RegKey;
let hkcu = RegKey::predef(HKEY_CURRENT_USER);
let (key, _disp) = hkcu.create_subkey("SOFTWARE\\Ion\\Larkinator")?;
let (key, _disp) = hkcu.create_subkey("SOFTWARE\\Ion\\Malarkey")?;
key.set_value("Lark Path", &new_path.as_os_str())?;
Ok(())
}