X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=contrib%2Fdelphi%2FZLib.pas;h=e9d72f021da16a18e9dc57e28a4fb4ff296ca1ba;hb=4a090adef8c773087ec8916ad3c2236ef560df27;hp=8853866a20930ccf8532c890ceb6532b8055f6b5;hpb=7a6955760ba950eb82f57929f8f6c9847c65f0af;p=zlib.git diff --git a/contrib/delphi/ZLib.pas b/contrib/delphi/ZLib.pas index 8853866..e9d72f0 100644 --- a/contrib/delphi/ZLib.pas +++ b/contrib/delphi/ZLib.pas @@ -152,7 +152,7 @@ procedure DecompressToUserBuf(const InBuf: Pointer; InBytes: Integer; const OutBuf: Pointer; BufSize: Integer); const - zlib_version = '1.2.2'; + zlib_version = '1.2.10'; type EZlibError = class(Exception); @@ -344,7 +344,7 @@ begin strm.avail_out := OutBytes; DCheck(inflateInit_(strm, zlib_version, sizeof(strm))); try - while DCheck(inflate(strm, Z_FINISH)) <> Z_STREAM_END do + while DCheck(inflate(strm, Z_NO_FLUSH)) <> Z_STREAM_END do begin P := OutBuf; Inc(OutBytes, BufInc);