ソースを参照

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

git-svn-id: trunk@12431 -
florian 16 年 前
コミット
ff205c6e90
1 ファイル変更5 行追加0 行削除
  1. 5 0
      packages/paszlib/src/zstream.pp

+ 5 - 0
packages/paszlib/src/zstream.pp

@@ -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