Sfoglia il codice sorgente

* Fix bug #28796

git-svn-id: trunk@31982 -
michael 9 anni fa
parent
commit
2c24153736
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      rtl/objpas/classes/streams.inc

+ 1 - 1
rtl/objpas/classes/streams.inc

@@ -186,7 +186,7 @@ end;
   begin
     t:=0;
     repeat
-      r:=Read(PByte(@Buffer)[t],Count);
+      r:=Read(PByte(@Buffer)[t],Count-t);
       inc(t,r);
     until (t=Count) or (r<=0);
     if (t<Count) then