Browse Source

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

# revisions: 31986

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

joost 9 years ago
parent
commit
9c719ab1e1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rtl/objpas/classes/streams.inc

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

@@ -205,7 +205,7 @@ end;
     begin
     begin
       T:=0;
       T:=0;
       Repeat
       Repeat
-         r:=Write(PByte(@Buffer)[t],Count);
+         r:=Write(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