mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 01:21:17 +00:00
- fixed seeking end of file in memory reader
https://forum.zdoom.org/viewtopic.php?t=60611
(cherry picked from commit 42668c6a5a
)
This commit is contained in:
parent
86eb6b8f85
commit
f8dc707edf
1 changed files with 1 additions and 1 deletions
|
@ -260,7 +260,7 @@ long MemoryReader::Seek(long offset, int origin)
|
|||
break;
|
||||
|
||||
}
|
||||
if (offset < 0 || offset >= Length) return -1;
|
||||
if (offset < 0 || offset > Length) return -1;
|
||||
FilePos = clamp<long>(offset, 0, Length);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue