From aaf69d1aff59a244990e1c3c1de4ef6bf6ac6a3b Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Tue, 3 Jan 2017 14:03:50 -0800 Subject: properly quote string arguments to copyutil in case there are spaces in the path --- windows/WinUI/APIHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'windows') diff --git a/windows/WinUI/APIHandler.cs b/windows/WinUI/APIHandler.cs index 177d336f..a762fff7 100644 --- a/windows/WinUI/APIHandler.cs +++ b/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"; -- cgit v1.2.3