summaryrefslogtreecommitdiff
path: root/windows/WinUI
diff options
context:
space:
mode:
authorGrant Limberg <grant.limberg@zerotier.com>2017-01-03 14:03:50 -0800
committerGrant Limberg <grant.limberg@zerotier.com>2017-01-03 14:03:50 -0800
commitaaf69d1aff59a244990e1c3c1de4ef6bf6ac6a3b (patch)
treeaaed57d61824adf6cc749f2a01972698cad47eee /windows/WinUI
parent9a2b766aad60b25e76777bd6bbf226701a311d43 (diff)
downloadinfinitytier-aaf69d1aff59a244990e1c3c1de4ef6bf6ac6a3b.tar.gz
infinitytier-aaf69d1aff59a244990e1c3c1de4ef6bf6ac6a3b.zip
properly quote string arguments to copyutil in case there are spaces in the path
Diffstat (limited to 'windows/WinUI')
-rw-r--r--windows/WinUI/APIHandler.cs2
1 files changed, 1 insertions, 1 deletions
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";