Pārlūkot izejas kodu

2004-06-24 Atsushi Enomoto <[email protected]>

	* Process.cs : quick fix for UseShellExecute=false on windows. See
	  the code comment.

svn path=/trunk/mcs/; revision=30290
Atsushi Eno 21 gadi atpakaļ
vecāks
revīzija
d4cbaa798f

+ 5 - 0
mcs/class/System/System.Diagnostics/ChangeLog

@@ -1,3 +1,8 @@
+2004-06-24  Atsushi Enomoto  <[email protected]>
+
+	* Process.cs : quick fix for UseShellExecute=false on windows. See
+	  the code comment.
+
 2004-06-17  Lluis Sanchez Gual  <[email protected]>
 
 	* Process.cs: Added missing check in HasExited property.

+ 5 - 1
mcs/class/System/System.Diagnostics/Process.cs

@@ -770,7 +770,11 @@ namespace System.Diagnostics {
 					cmdline = startInfo.FileName + " " + startInfo.Arguments.Trim ();
 			} else {
 				appname = startInfo.FileName;
-				cmdline = startInfo.Arguments.Trim ();
+				// FIXME: There seems something wrong in process.c. We should not require extraneous command line
+				if (Path.DirectorySeparatorChar == '\\')
+					cmdline = appname + " " + startInfo.Arguments.Trim ();
+				else
+					cmdline = startInfo.Arguments.Trim ();
 			}
 
 			ret=Start_internal(appname,