Bläddra i källkod

+ StdIO flush now handled as all other files

git-svn-id: trunk@2971 -
michael 19 år sedan
förälder
incheckning
155df8d326
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      rtl/inc/text.inc

+ 2 - 1
rtl/inc/text.inc

@@ -1220,7 +1220,8 @@ begin
     fmOutput :
     fmOutput :
       begin
       begin
         TextRec(f).InOutFunc:=@FileWriteFunc;
         TextRec(f).InOutFunc:=@FileWriteFunc;
-        TextRec(f).FlushFunc:=@FileWriteFunc;
+        if Do_Isdevice(hdl) then
+          TextRec(f).FlushFunc:=@FileWriteFunc;
       end;
       end;
   else
   else
    HandleError(102);
    HandleError(102);