Call inflateInit2 instead of inflateInit for the zip stream
This commit is contained in:
parent
2406745e4e
commit
baebdaa48e
1 changed files with 1 additions and 1 deletions
|
@ -464,7 +464,7 @@ void ZipFile::GetUncompressedContent(
|
|||
strm.opaque = Z_NULL;
|
||||
strm.avail_in = 0;
|
||||
strm.next_in = Z_NULL;
|
||||
ret = inflateInit(&strm);
|
||||
ret = inflateInit2(&strm,-MAX_WBITS);
|
||||
if (ret != Z_OK)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in a new issue