Explorar o código

+ StdIO flush now handled as all other files

git-svn-id: trunk@2971 -
michael %!s(int64=19) %!d(string=hai) anos
pai
achega
155df8d326
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      rtl/inc/text.inc

+ 2 - 1
rtl/inc/text.inc

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