aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorFabio Battaglia2010-11-09 11:00:56 +0000
committerFabio Battaglia2010-11-09 11:00:56 +0000
commit77a636aaec30f1e1e9f69038dbd397e9bb23dedf (patch)
tree0e881b33518277820c30c3768032ad457d936b14 /backends
parent53a4a64b16cc347a8f06e7fdb35c02a989e74185 (diff)
downloadscummvm-rg350-77a636aaec30f1e1e9f69038dbd397e9bb23dedf.tar.gz
scummvm-rg350-77a636aaec30f1e1e9f69038dbd397e9bb23dedf.tar.bz2
scummvm-rg350-77a636aaec30f1e1e9f69038dbd397e9bb23dedf.zip
N64: correct wrong check in romfs stream code
my implementation of romfs_seek is based on lseek, not on fseek, so it returns the offset on successful completion, not 0, corrected the check in RomfsStream::seek(). svn-id: r54151
Diffstat (limited to 'backends')
-rw-r--r--backends/fs/n64/romfsstream.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/fs/n64/romfsstream.cpp b/backends/fs/n64/romfsstream.cpp
index 2d30f852ca..c833a228f5 100644
--- a/backends/fs/n64/romfsstream.cpp
+++ b/backends/fs/n64/romfsstream.cpp
@@ -59,7 +59,7 @@ int32 RomfsStream::size() const {
}
bool RomfsStream::seek(int32 offs, int whence) {
- return romfs_seek((ROMFILE *)_handle, offs, whence) == 0;
+ return romfs_seek((ROMFILE *)_handle, offs, whence) >= 0;
}
uint32 RomfsStream::read(void *ptr, uint32 len) {