فهرست منبع

* Writebuffer too (Fix bug 28796streams.inc

git-svn-id: trunk@31986 -
michael 9 سال پیش
والد
کامیت
61969710c3
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      rtl/objpas/classes/streams.inc

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

@@ -201,7 +201,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