mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-16 02:50:40 +01:00
* don't call the system if flush hasn't to flush anything
git-svn-id: trunk@4829 -
This commit is contained in:
parent
fd784931dd
commit
6f968732c0
@ -33,6 +33,9 @@ Procedure FileWriteFunc(var t:TextRec);
|
||||
var
|
||||
i : longint;
|
||||
Begin
|
||||
{ prevent unecessary system call }
|
||||
if t.BufPos=0 then
|
||||
exit;
|
||||
i:=Do_Write(t.Handle,t.Bufptr,t.BufPos);
|
||||
if i<>t.BufPos then
|
||||
InOutRes:=101;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user