From c52f4af17d9c59b1eefe0861a8cf8955fc7f92c5 Mon Sep 17 00:00:00 2001 From: open-trade Date: Fri, 20 Aug 2021 13:57:53 +0800 Subject: [PATCH] My stupidness --- src/platform/windows.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/windows.rs b/src/platform/windows.rs index 0f3285ed1..5a18a2a5f 100644 --- a/src/platform/windows.rs +++ b/src/platform/windows.rs @@ -974,7 +974,7 @@ netsh advfirewall firewall delete rule name=\"{app_name} Service\" fn write_cmds(cmds: String, ext: &str) -> ResultType { let mut tmp = std::env::temp_dir(); - tmp.push(format!("{}_{}.{}", APP_NAME, crate::get_time(), ext)); + tmp.push(format!("{}_{:?}.{}", APP_NAME, cmds.as_ptr(), ext)); let mut cmds = cmds; if ext == "cmd" { cmds = format!("{}\ndel /f \"{}\"", cmds, tmp.to_str().unwrap_or(""));