* set result of tdecompressionstream.seek by Danny Milosavljevic, resolves #12830

git-svn-id: trunk@12431 -
This commit is contained in:
florian 2008-12-24 15:32:23 +00:00
parent de5861c689
commit ff205c6e90

View File

@ -329,6 +329,11 @@ begin
if (origin=sofrombeginning) or
((origin=sofromcurrent) and (offset+raw_read>=0)) then
begin
if origin = sofromcurrent then
seek := compressed_read - offset
else
seek := offset;
if origin=sofrombeginning then
dec(offset,raw_read);
if offset<0 then