Sfoglia il codice sorgente

+ StdIO flush now handled as all other files

git-svn-id: trunk@2971 -
michael 19 anni fa
parent
commit
155df8d326
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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);