diff options
author | Max Horn | 2009-03-05 20:37:53 +0000 |
---|---|---|
committer | Max Horn | 2009-03-05 20:37:53 +0000 |
commit | 05b4370c21b3abf7a1ff6aa83194cf95ab73579c (patch) | |
tree | a4d2cecedc5735d3205489e50610f85ca57be348 /engines/parallaction | |
parent | 2017d1c9ea12968e80a7aaeed1d9289f39c3a96e (diff) | |
download | scummvm-rg350-05b4370c21b3abf7a1ff6aa83194cf95ab73579c.tar.gz scummvm-rg350-05b4370c21b3abf7a1ff6aa83194cf95ab73579c.tar.bz2 scummvm-rg350-05b4370c21b3abf7a1ff6aa83194cf95ab73579c.zip |
Fix for bug #2664460: Various SeekableReadStream::seek() implementations (as well as our unit tests, ouch) handled SEEK_END incorrectly (using -offset instead of offset), contrary to what the docs said and what fseek does. Hopefully I found and fixed all affected parts, but still watch out for regressions
svn-id: r39135
Diffstat (limited to 'engines/parallaction')
-rw-r--r-- | engines/parallaction/disk_ns.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/parallaction/disk_ns.cpp b/engines/parallaction/disk_ns.cpp index 94d9f8482b..6d78dc1a57 100644 --- a/engines/parallaction/disk_ns.cpp +++ b/engines/parallaction/disk_ns.cpp @@ -661,7 +661,7 @@ public: return; } - stream.seek(4, SEEK_END); + stream.seek(-4, SEEK_END); uint32 decrlen = stream.readUint32BE() >> 8; byte *dest = (byte*)malloc(decrlen); |