Call inflateInit2 instead of inflateInit for the zip stream

This commit is contained in:
Fridrich Štrba 2012-03-21 13:42:38 +01:00
parent 2406745e4e
commit baebdaa48e

View file

@ -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;