mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 06:53:40 +00:00
- Bah, you, GCC.
- Forgot to remove the _heapchk() calls. SVN r3691 (trunk)
This commit is contained in:
parent
661e33f364
commit
6e5c048df8
4 changed files with 4 additions and 7 deletions
|
@ -402,14 +402,11 @@ void FCompressedFile::Explode ()
|
|||
uLong newlen;
|
||||
|
||||
newlen = expandsize;
|
||||
_heapchk();
|
||||
r = uncompress (expand, &newlen, m_Buffer + 8, cprlen);
|
||||
if (r != Z_OK || newlen != expandsize)
|
||||
{
|
||||
_heapchk();
|
||||
M_Free (expand);
|
||||
_heapchk();
|
||||
I_Error ("Could not decompress buffer: %s", M_ZLibError(r));
|
||||
I_Error ("Could not decompress buffer: %s", M_ZLibError(r).GetChars());
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
@ -224,7 +224,7 @@ FileReaderZ::FileReaderZ (FileReader &file, bool zip)
|
|||
|
||||
if (err != Z_OK)
|
||||
{
|
||||
I_Error ("FileReaderZ: inflateInit failed: %s\n", M_ZLibError(err));
|
||||
I_Error ("FileReaderZ: inflateInit failed: %s\n", M_ZLibError(err).GetChars());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -2513,7 +2513,7 @@ bool G_ProcessIFFDemo (char *mapname)
|
|||
int r = uncompress (uncompressed, &uncompSize, demo_p, uLong(zdembodyend - demo_p));
|
||||
if (r != Z_OK)
|
||||
{
|
||||
Printf ("Could not decompress demo! %s\n", M_ZLibError(r));
|
||||
Printf ("Could not decompress demo! %s\n", M_ZLibError(r).GetChars());
|
||||
delete[] uncompressed;
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -303,7 +303,7 @@ void PacketGet (void)
|
|||
// Printf("recv %d/%lu\n", c, msgsize + 1);
|
||||
if (err != Z_OK)
|
||||
{
|
||||
Printf("Net decompression failed (zlib error %s)\n", M_ZLibError(err));
|
||||
Printf("Net decompression failed (zlib error %s)\n", M_ZLibError(err).GetChars());
|
||||
// Pretend no packet
|
||||
doomcom.remotenode = -1;
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue