瀏覽代碼

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;
                 int index = curPath.LastIndexOf("\\");
                 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";