* IntPtrStream.cs: Fix build bustage.
svn path=/trunk/mcs/; revision=22269
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.
if (position >= size)
return -1;
- if (handle == MonoIO.InvalidHandle)
+ if (closed)
throw new ObjectDisposedException ("Stream has been closed");
unsafe {
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;