mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 01:09:31 +02:00
* Should use Edecompressionerror in Tdecompresionstream.
git-svn-id: trunk@9372 -
This commit is contained in:
parent
5196db1ac3
commit
00e8db2ab6
@ -296,7 +296,7 @@ begin
|
||||
if err=Z_STREAM_END then
|
||||
break;
|
||||
if err<>Z_OK then
|
||||
raise Ecompressionerror.create(zerror(err));
|
||||
raise Edecompressionerror.create(zerror(err));
|
||||
end;
|
||||
if err=Z_STREAM_END then
|
||||
dec(compressed_read,Fstream.avail_in);
|
||||
@ -318,7 +318,7 @@ begin
|
||||
else
|
||||
err:=inflateInit(Fstream);
|
||||
if err<>Z_OK then
|
||||
raise Ecompressionerror.create(zerror(err));
|
||||
raise Edecompressionerror.create(zerror(err));
|
||||
end;
|
||||
|
||||
function Tdecompressionstream.seek(offset:longint;origin:word):longint;
|
||||
|
Loading…
Reference in New Issue
Block a user