aboutsummaryrefslogtreecommitdiff
path: root/common/file.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2004-10-16 18:40:06 +0000
committerEugene Sandulenko2004-10-16 18:40:06 +0000
commit2337d924ce3c9513a1f2e11fa2f63f5eaaa75ee4 (patch)
treea7fdab8fee8e578c3953735ee9ef060d4b362d9a /common/file.cpp
parent54dc902ae4b12a140e450673fb51a42b8ca39b4d (diff)
downloadscummvm-rg350-2337d924ce3c9513a1f2e11fa2f63f5eaaa75ee4.tar.gz
scummvm-rg350-2337d924ce3c9513a1f2e11fa2f63f5eaaa75ee4.tar.bz2
scummvm-rg350-2337d924ce3c9513a1f2e11fa2f63f5eaaa75ee4.zip
Fix bug #1048129 which prevented eof() method from working.
svn-id: r15573
Diffstat (limited to 'common/file.cpp')
-rw-r--r--common/file.cpp2
1 files changed, 0 insertions, 2 deletions
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;
}