Author: dick
Date: 2006-10-11 13:33:14 -0400 (Wed, 11 Oct 2006)
New Revision: 66563

Modified:
   trunk/mcs/class/corlib/System.IO/ChangeLog
   trunk/mcs/class/corlib/System.IO/FileStream.cs
Log:

2006-10-11  Dick Porter  <[EMAIL PROTECTED]>

        * FileStream.cs: Cope with 2.0 FileShare.Delete values.  Patch by
        Peter Dettman <[EMAIL PROTECTED]> fixing bug 79250.




Modified: trunk/mcs/class/corlib/System.IO/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.IO/ChangeLog  2006-10-11 16:40:07 UTC (rev 
66562)
+++ trunk/mcs/class/corlib/System.IO/ChangeLog  2006-10-11 17:33:14 UTC (rev 
66563)
@@ -1,3 +1,8 @@
+2006-10-11  Dick Porter  <[EMAIL PROTECTED]>
+
+       * FileStream.cs: Cope with 2.0 FileShare.Delete values.  Patch by
+       Peter Dettman <[EMAIL PROTECTED]> fixing bug 79250.
+
 2006-09-21 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
 
        * FileInfo.cs: added 2.0 IsReadOnly. Patch by Joel Reed.

Modified: trunk/mcs/class/corlib/System.IO/FileStream.cs
===================================================================
--- trunk/mcs/class/corlib/System.IO/FileStream.cs      2006-10-11 16:40:07 UTC 
(rev 66562)
+++ trunk/mcs/class/corlib/System.IO/FileStream.cs      2006-10-11 17:33:14 UTC 
(rev 66563)
@@ -169,7 +169,11 @@
                        if (access < FileAccess.Read || access > 
FileAccess.ReadWrite)
                                throw new ArgumentOutOfRangeException 
("access", "Enum value was out of legal range.");
 
+#if NET_2_0
+                       if (share < FileShare.None || share > FileShare.Delete)
+#else
                        if (share < FileShare.None || share > 
FileShare.ReadWrite)
+#endif
                                throw new ArgumentOutOfRangeException ("share", 
"Enum value was out of legal range.");
 
                        if (name.IndexOfAny (Path.InvalidPathChars) != -1) {

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to