From 356db288ad033fb4132837b8e9ac956e3a282a0b Mon Sep 17 00:00:00 2001 From: Yeechan Lu Date: Fri, 21 Mar 2014 04:38:50 +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 fa5f4fb78..6dd21f43a 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 - 1); + cmd = cmd.Substring(0, cmd.Length - args.Length).Trim(); } else args = null;