Fix the bug in WindowsShellRun

This commit is contained in:
Yeechan Lu
2014-03-17 02:50:15 +08:00
parent 9918b4ee42
commit b65f562c61

View File

@@ -184,10 +184,7 @@ namespace Wox.Plugin.System
{ {
try try
{ {
//not right here. pszOut = Path.GetFullPath(pszCommand); // PathQualifyDef(pszOut, pszDir, 0);
//e.g. If I input qs which is a shortcut in a folder, and this folder has been added to Path
//After execute this, qs will trun to c:/xxxxxx/xxxxxxxx/qs, and give a file not find error.
//pszOut = Path.GetFullPath(pszCommand); // PathQualifyDef(pszOut, pszDir, 0);
} }
catch catch
{ {
@@ -199,7 +196,7 @@ namespace Wox.Plugin.System
return false; return false;
} }
} }
pszOut = pszCommand;
return true; return true;
} }