diff options
author | Grant Limberg <grant.limberg@zerotier.com> | 2017-01-03 14:03:50 -0800 |
---|---|---|
committer | Grant Limberg <grant.limberg@zerotier.com> | 2017-01-03 14:03:50 -0800 |
commit | aaf69d1aff59a244990e1c3c1de4ef6bf6ac6a3b (patch) | |
tree | aaed57d61824adf6cc749f2a01972698cad47eee | |
parent | 9a2b766aad60b25e76777bd6bbf226701a311d43 (diff) | |
download | infinitytier-aaf69d1aff59a244990e1c3c1de4ef6bf6ac6a3b.tar.gz infinitytier-aaf69d1aff59a244990e1c3c1de4ef6bf6ac6a3b.zip |
properly quote string arguments to copyutil in case there are spaces in the path
-rw-r--r-- | windows/WinUI/APIHandler.cs | 2 |
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"; |