This commit is contained in:
mysticbbs 2013-02-24 23:28:27 -05:00
parent 93337d2a25
commit ef9bbdf2e4
2 changed files with 3 additions and 2 deletions

View File

@ -174,7 +174,7 @@ End;
Function TIOSocket.DataWaiting : Boolean;
Begin
Result := (FInBufPos < FInBufEnd) or (WaitForData(0) > 0);
Result := (FInBufPos < FInBufEnd) or (WaitForData(1) > 0);
End;
Function TIOSocket.WriteBuf (Var Buf; Len: LongInt) : LongInt;
@ -456,6 +456,7 @@ Begin
If FInBufEnd <= 0 Then Begin
FInBufEnd := 0;
Result := -1;
Connected := False;
Exit;
End;

View File

@ -47,7 +47,7 @@ End;
Function TSTDIO.DataWaiting : Boolean;
Begin
Result := (FInBufPos < FInBufEnd) or (WaitForData(0) > 0);
Result := (FInBufPos < FInBufEnd) or (WaitForData(1) > 0);
End;
Function TSTDIO.WriteBuf (Var Buf; Len: LongInt) : LongInt;