From 4622c86ae1b711b44b4fb76e253eb724f7f9df62 Mon Sep 17 00:00:00 2001 From: Yeechan Lu Date: Fri, 21 Mar 2014 04:07:31 +0800 Subject: [PATCH] Fix a bug with WindowsShellRun --- Wox.Infrastructure/WindowsShellRun.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Wox.Infrastructure/WindowsShellRun.cs b/Wox.Infrastructure/WindowsShellRun.cs index 038448c76b..fa5f4fb78d 100644 --- a/Wox.Infrastructure/WindowsShellRun.cs +++ b/Wox.Infrastructure/WindowsShellRun.cs @@ -205,7 +205,7 @@ namespace Wox.Infrastructure // there might be args in that command args = PathGetArgs(cmd); if (args != null) - cmd = cmd.Substring(0, cmd.Length - args.Length); + cmd = cmd.Substring(0, cmd.Length - args.Length - 1); } else args = null;