2004-01-19 Zoltan Varga <vargaz@freemail.hu>
authorZoltan Varga <vargaz@gmail.com>
Mon, 19 Jan 2004 18:48:57 +0000 (18:48 -0000)
committerZoltan Varga <vargaz@gmail.com>
Mon, 19 Jan 2004 18:48:57 +0000 (18:48 -0000)
* IntPtrStream.cs: Fix build bustage.

svn path=/trunk/mcs/; revision=22269

mcs/class/corlib/System.IO/ChangeLog
mcs/class/corlib/System.IO/IntPtrStream.cs

index edc5b88b289fd76d8a6bfda265373809c4fcf885..1d7a02234c1eb8f5f670cd6461308ca9894a5668 100644 (file)
@@ -1,5 +1,7 @@
 2004-01-19  Zoltan Varga  <vargaz@freemail.hu>
 
+       * IntPtrStream.cs: Fix build bustage.
+       
        * IntPtrStream.cs: Add a 'Closed' event. Also throw exceptions after
        the stream is closed.
 
index e5347f57c59b7adca4ae2db79637349fd13809f9..8643803ab803610571e8ff8b79f5ad6288c7b207 100644 (file)
@@ -106,7 +106,7 @@ namespace System.IO {
                        if (position >= size)
                                return -1;
 
-                       if (handle == MonoIO.InvalidHandle)
+                       if (closed)
                                throw new ObjectDisposedException ("Stream has been closed");
 
                        unsafe {
@@ -120,7 +120,7 @@ namespace System.IO {
                        if (offset > (long) Int32.MaxValue)
                                throw new ArgumentOutOfRangeException ("Offset out of range. " + offset);
 
-                       if (handle == MonoIO.InvalidHandle)
+                       if (closed)
                                throw new ObjectDisposedException ("Stream has been closed");
 
                        int ref_point;