mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
- fixed infinite loop in compression code.
This commit is contained in:
parent
dc10a8b03d
commit
d3e6807f61
1 changed files with 1 additions and 1 deletions
|
@ -732,7 +732,7 @@ size_t CompressedFileWriter::Write(const void *buffer, size_t bytes)
|
|||
size_t towrite = bytes;
|
||||
|
||||
zipstream->next_in = (Bytef *)buffer;
|
||||
while (bytes > 0)
|
||||
while (towrite > 0)
|
||||
{
|
||||
auto chunk = std::min(towrite, (size_t)0x40000000);
|
||||
zipstream->avail_in = chunk;
|
||||
|
|
Loading…
Reference in a new issue