Build fix
authorMarek Safar <marek.safar@gmail.com>
Tue, 4 Sep 2007 08:48:03 +0000 (08:48 -0000)
committerMarek Safar <marek.safar@gmail.com>
Tue, 4 Sep 2007 08:48:03 +0000 (08:48 -0000)
svn path=/trunk/mcs/; revision=85260

mcs/class/System/System.Diagnostics/ProcessStartInfo.cs

index e5c191718d41f760f65152f6d8ef29aefd71501f..a2076fb9c456f3aece2fc429e9fe4b27dfe569eb 100644 (file)
@@ -262,12 +262,18 @@ namespace System.Diagnostics
                [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden), Browsable (false)]
                public string[] Verbs {
                        get {
-                               string ext = String.IsNullOrEmpty (filename) ? null : Path.GetExtension (filename);
+                               string ext = filename == null | filename.Length == 0 ? 
+                                       null : Path.GetExtension (filename);
                                if (ext == null)
                                        return empty;
 
+#if NET_2_0                            
+                               const PlatformID unix_platform = PlatformID.Unix;
+#else
+                               const PlatformID unix_platform = (PlatformID)4;
+#endif
                                switch (Environment.OSVersion.Platform) {
-                               case PlatformID.Unix:
+                               case unix_platform:
                                        return empty; // no verb on non-Windows
                                default:
                                        RegistryKey rk = null, rk2 = null, rk3 = null;