Skip to content

Commit

Permalink
fix gzip related issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Grahame Grieve committed Jan 6, 2024
1 parent d8be251 commit 9b89c52
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 253 deletions.
2 changes: 1 addition & 1 deletion dependencies/zflate/zflate.pas
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ tgzipinfo = record

var
zchunkmaxsize: dword = 1024*128; //128 KB default max chunk size
zbuffersize: dword = 1024*1024*4; //4 MB default buffer size
zbuffersize: dword = 1024*1024*16; //16 MB default buffer size

threadvar
zlasterror: integer;
Expand Down
251 changes: 0 additions & 251 deletions dependencies/zflate/zflatefiles.pas

This file was deleted.

2 changes: 1 addition & 1 deletion library/fsl/fsl_gzip.pas
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function gzip(bytes : TBytes; header : boolean; level: dword=9) : TBytes;
function ungzip(bytes : TBytes) : TBytes;
begin
result := zflate.zdecompress(bytes);
if length(result) = 0 then
if zlastError <> 0 then
raise EFslException.create('Failed to read compressed content: '+zflatetranslatecode(zlasterror));
end;

Expand Down

0 comments on commit 9b89c52

Please sign in to comment.