mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-10 20:01:25 +00:00
GRIM:/PATCHR Do not fall through on SEEK_END
This commit is contained in:
parent
da9bc40359
commit
3146c8e062
@ -311,6 +311,7 @@ bool PatchedFile::seek(int32 offset, int whence) {
|
||||
break;
|
||||
case SEEK_END:
|
||||
relOffset = (size() + offset) - pos();
|
||||
break;
|
||||
default:
|
||||
error("%s: Invalid seek instruction", _patchName.c_str());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user