Browse Source

2004-01-19 Zoltan Varga <[email protected]>

	* IntPtrStream.cs: Fix build bustage.

svn path=/trunk/mcs/; revision=22269
Zoltan Varga 22 years ago
parent
commit
9e456352d0

+ 2 - 0
mcs/class/corlib/System.IO/ChangeLog

@@ -1,5 +1,7 @@
 2004-01-19  Zoltan Varga  <[email protected]>
 
+	* IntPtrStream.cs: Fix build bustage.
+	
 	* IntPtrStream.cs: Add a 'Closed' event. Also throw exceptions after
 	the stream is closed.
 

+ 2 - 2
mcs/class/corlib/System.IO/IntPtrStream.cs

@@ -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;