Explorar el Código

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

Grant Limberg hace 8 años
padre
commit
aaf69d1aff
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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";