* java/io/natFileDescriptorWin32.cc (read): Return -1 if zero
bytes read and no failure code returned.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50519
138bc75d-0d04-0410-961f-
82ee72b054a4
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
definitions to simulate -mthreads.
if (! ReadFile((HANDLE)fd, bytes, count, &read, NULL))
throw new IOException (JvNewStringLatin1 (winerr ()));
+ if (read == 0) return -1;
return (jint)read;
}