From 2337d924ce3c9513a1f2e11fa2f63f5eaaa75ee4 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 16 Oct 2004 18:40:06 +0000 Subject: Fix bug #1048129 which prevented eof() method from working. svn-id: r15573 --- common/file.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'common/file.cpp') diff --git a/common/file.cpp b/common/file.cpp index d2abdf75cc..9376749866 100644 --- a/common/file.cpp +++ b/common/file.cpp @@ -246,7 +246,6 @@ uint32 File::read(void *ptr, uint32 len) { real_len = fread(ptr2, 1, len, _handle); if (real_len < len) { - clearerr(_handle); _ioFailed = true; } @@ -263,7 +262,6 @@ uint32 File::write(const void *ptr, uint32 len) { return 0; if ((uint32)fwrite(ptr, 1, len, _handle) != len) { - clearerr(_handle); _ioFailed = true; } -- cgit v1.2.3