mirror of
https://github.com/ZDoom/gzdoom-last-svn.git
synced 2025-06-02 10:11:31 +00:00
* Reverted Tempo temporary fix now that the proper one is in place.
* Updated to ZDoom r2685: - Don't call M_NotifyNewSave() before closing the new savegame. - Disallow negative read lengths in FileReader::Read(). - Make sure Tempo is initialized before creating SMFs. git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@934 b0f79afe-0144-0410-b225-9a4edf0717df
This commit is contained in:
parent
dffac6a20b
commit
eefd6ef0d1
5 changed files with 9 additions and 6 deletions
|
@ -132,6 +132,8 @@ long FileReader::Seek (long offset, int origin)
|
|||
|
||||
long FileReader::Read (void *buffer, long len)
|
||||
{
|
||||
assert(len >= 0);
|
||||
if (len <= 0) return 0;
|
||||
if (FilePos + len > StartPos + Length)
|
||||
{
|
||||
len = Length - FilePos + StartPos;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue