diff options
author | Chris Warren-Smith | 2011-08-14 05:59:15 +1000 |
---|---|---|
committer | Chris Warren-Smith | 2011-08-21 16:38:53 +1000 |
commit | e748ea68a5f7e2e2e11dd863fab9c369c756aad3 (patch) | |
tree | 5a35c6b37effb438e0dd45bc46b5096f8160b3d9 /backends/platform/bada | |
parent | 812e4498ec04231d113bdecabd506d6fa4d84c85 (diff) | |
download | scummvm-rg350-e748ea68a5f7e2e2e11dd863fab9c369c756aad3.tar.gz scummvm-rg350-e748ea68a5f7e2e2e11dd863fab9c369c756aad3.tar.bz2 scummvm-rg350-e748ea68a5f7e2e2e11dd863fab9c369c756aad3.zip |
BADA: Prevent end-of-file state causing err() returning true
Diffstat (limited to 'backends/platform/bada')
-rwxr-xr-x | backends/platform/bada/fs.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backends/platform/bada/fs.cpp b/backends/platform/bada/fs.cpp index b9d01d5e20..73492101ce 100755 --- a/backends/platform/bada/fs.cpp +++ b/backends/platform/bada/fs.cpp @@ -75,7 +75,8 @@ BadaFileStream::~BadaFileStream() { } bool BadaFileStream::err() const { - return (GetLastResult() != E_SUCCESS); + result r = GetLastResult(); + return (r != E_SUCCESS && r != E_END_OF_FILE); } void BadaFileStream::clearErr() { |