2002-03-09 Adam Megacz <adam@xwt.org>
* java/io/natFileDescriptorWin32.cc (read): Return -1 if zero
bytes read and no failure code returned.
From-SVN: r50519
+2002-03-09 Adam Megacz <adam@xwt.org>
+
+ * java/io/natFileDescriptorWin32.cc (read): Return -1 if zero
+ bytes read and no failure code returned.
+
2002-03-09 Adam Megacz <adam@xwt.org>
* win32.cc (_CRT_MT, __mingwthr_key_dtor) Added fake
if (! ReadFile((HANDLE)fd, bytes, count, &read, NULL))
throw new IOException (JvNewStringLatin1 (winerr ()));
+ if (read == 0) return -1;
return (jint)read;
}