This commit is contained in:
jfrijters 2006-02-13 15:11:00 +00:00
Родитель 7206c31ffc
Коммит 09625c4fc3
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -530,6 +530,7 @@ public abstract class FileChannelImpl extends FileChannel
try
{
if(false) throw new cli.System.IO.IOException();
stream.Flush();
return stream.ReadByte();
}
catch(cli.System.IO.IOException x)
@ -556,7 +557,8 @@ public abstract class FileChannelImpl extends FileChannel
try
{
if(false) throw new cli.System.IO.IOException();
int count = stream.Read(buf, offset, len);
stream.Flush();
int count = stream.Read(buf, offset, len);
if(count == 0)
{
count = -1;