Browse Source

+ StdIO flush now handled as all other files

git-svn-id: trunk@2971 -
michael 19 years ago
parent
commit
155df8d326
1 changed files with 2 additions and 1 deletions
  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);