소스 검색

properly quote string arguments to copyutil in case there are spaces in the path

Grant Limberg 8 년 전
부모
커밋
aaf69d1aff
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      windows/WinUI/APIHandler.cs

+ 1 - 1
windows/WinUI/APIHandler.cs

@@ -61,7 +61,7 @@ namespace WinUI
                 String curPath = System.Reflection.Assembly.GetEntryAssembly().Location;
                 String curPath = System.Reflection.Assembly.GetEntryAssembly().Location;
                 int index = curPath.LastIndexOf("\\");
                 int index = curPath.LastIndexOf("\\");
                 curPath = curPath.Substring(0, index);
                 curPath = curPath.Substring(0, index);
-                ProcessStartInfo startInfo = new ProcessStartInfo(curPath + "\\copyutil.exe", globalZtDir + " " + localZtDir);
+                ProcessStartInfo startInfo = new ProcessStartInfo(curPath + "\\copyutil.exe", "\""+globalZtDir+"\"" + " " + "\""+localZtDir+"\"");
                 startInfo.Verb = "runas";
                 startInfo.Verb = "runas";