Changeset 662 for trunk/ab5.0


Ignore:
Timestamp:
Nov 27, 2008, 1:46:23 AM (16 years ago)
Author:
イグトランス (egtra)
Message:

StreamReaderとStringReaderでEOF絡みの判定漏れを修正。

Location:
trunk/ab5.0/ablib/src/Classes/System/IO
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/ablib/src/Classes/System/IO/StreamReader.ab

    r660 r662  
    152152                VarPtr(charBuf[charSize]), charCapacity - charSize,
    153153                byteEof, charUsed, byteUsed, completed)
    154             charEof = byteEof And completed
     154            charEof = byteEof And completed And byteCur = byteSize
    155155            byteCur += byteUsed
    156156            charSize += charUsed
  • trunk/ab5.0/ablib/src/Classes/System/IO/StringReader.ab

    r655 r662  
    3636    */
    3737    Override Function Peek() As Long
    38         If i = len Then
     38        If i >= len Then
    3939            Peek = -1
    4040        Else
Note: See TracChangeset for help on using the changeset viewer.