Browse Source

--- Merging r31982 into '.':
U rtl/objpas/classes/streams.inc
--- Recording mergeinfo for merge of r31982 into '.':
U .

# revisions: 31982

git-svn-id: branches/fixes_3_0@31985 -

joost 9 năm trước cách đây
mục cha
commit
cde218d81c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      rtl/objpas/classes/streams.inc

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

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