mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 14:09:20 +02:00
* do not overwrite Inoutres in blockwrite with 101
This commit is contained in:
parent
b767dd8ca3
commit
f534cdd91d
@ -187,7 +187,7 @@ var
|
|||||||
Result : Longint;
|
Result : Longint;
|
||||||
Begin
|
Begin
|
||||||
BlockWrite(f,Buf,Count,Result);
|
BlockWrite(f,Buf,Count,Result);
|
||||||
If (Result<Count) and (Count>0) Then
|
If (InOutRes=0) and (Result<Count) and (Count>0) Then
|
||||||
InOutRes:=101;
|
InOutRes:=101;
|
||||||
End;
|
End;
|
||||||
|
|
||||||
@ -259,7 +259,7 @@ var
|
|||||||
Result : Longint;
|
Result : Longint;
|
||||||
Begin
|
Begin
|
||||||
BlockRead(f,Buf,Count,Result);
|
BlockRead(f,Buf,Count,Result);
|
||||||
If (Result<Count) and (Count>0) Then
|
If (InOutRes=0) and (Result<Count) and (Count>0) Then
|
||||||
InOutRes:=100;
|
InOutRes:=100;
|
||||||
End;
|
End;
|
||||||
|
|
||||||
@ -412,7 +412,10 @@ End;
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.6 2002-12-07 14:36:14 carl
|
Revision 1.7 2003-11-29 14:07:52 peter
|
||||||
|
* do not overwrite Inoutres in blockwrite with 101
|
||||||
|
|
||||||
|
Revision 1.6 2002/12/07 14:36:14 carl
|
||||||
- avoid warnings (add typecast)
|
- avoid warnings (add typecast)
|
||||||
|
|
||||||
Revision 1.5 2002/09/07 15:07:45 peter
|
Revision 1.5 2002/09/07 15:07:45 peter
|
||||||
|
Loading…
Reference in New Issue
Block a user