Procházet zdrojové kódy

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

git-svn-id: trunk@12431 -
florian před 16 roky
rodič
revize
ff205c6e90
1 změnil soubory, kde provedl 5 přidání a 0 odebrání
  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