]> git.lizzy.rs Git - zlib.git/blobdiff - contrib/delphi/ZLib.pas
zlib 1.2.10
[zlib.git] / contrib / delphi / ZLib.pas
index 8853866a20930ccf8532c890ceb6532b8055f6b5..e9d72f021da16a18e9dc57e28a4fb4ff296ca1ba 100644 (file)
@@ -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);