Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2007-09-04 12:48:03 +0400
committerMarek Safar <marek.safar@gmail.com>2007-09-04 12:48:03 +0400
commitd36d3dcfce59c74e4322b0f931c9f1c94a4a0aa9 (patch)
tree8e3df7c6063bb3fdb210764f23cb90130b49af81 /mcs/class/System/System.Diagnostics/ProcessStartInfo.cs
parent1465241c54acd6795f7514128ed1cbdffc0c2d0a (diff)
Build fix
svn path=/trunk/mcs/; revision=85260
Diffstat (limited to 'mcs/class/System/System.Diagnostics/ProcessStartInfo.cs')
-rw-r--r--mcs/class/System/System.Diagnostics/ProcessStartInfo.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/mcs/class/System/System.Diagnostics/ProcessStartInfo.cs b/mcs/class/System/System.Diagnostics/ProcessStartInfo.cs
index e5c191718d4..a2076fb9c45 100644
--- a/mcs/class/System/System.Diagnostics/ProcessStartInfo.cs
+++ b/mcs/class/System/System.Diagnostics/ProcessStartInfo.cs
@@ -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;