Merge pull request #1923 from lukaszunity/start-managed-process-fix
authorJoão Matos <joao@tritao.eu>
Mon, 27 Jul 2015 15:43:40 +0000 (16:43 +0100)
committerJoão Matos <joao@tritao.eu>
Mon, 27 Jul 2015 15:43:40 +0000 (16:43 +0100)
Process.Start fix for managed program

mono/io-layer/processes.c

index fc2eb354bbc86bcf97cf4d8a4cfc2883855b0653..5f0805878cf7173c6c492460d6254159a2c3e859 100644 (file)
@@ -817,11 +817,11 @@ gboolean CreateProcess (const gunichar2 *appname, const gunichar2 *cmdline,
 
                if (newapp != NULL) {
                        if (appname != NULL) {
-                               newcmd = utf16_concat (newapp, utf16_space,
+                               newcmd = utf16_concat (utf16_quote, newapp, utf16_quote, utf16_space,
                                                       appname, utf16_space,
                                                       cmdline, NULL);
                        } else {
-                               newcmd = utf16_concat (newapp, utf16_space,
+                               newcmd = utf16_concat (utf16_quote, newapp, utf16_quote, utf16_space,
                                                       cmdline, NULL);
                        }