Changeset 923


Ignore:
Timestamp:
Jul 31, 2011, 11:07:15 PM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

OS/2: Fix QFile::atEnd() returning 0 on a pipe after it is closed.

This is to be compatible with other platforms (e.g. Linux) and with
software that incorrectly uses the while(file.atEnd()) loop to read
data from a file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/corelib/io/qfsfileengine.cpp

    r846 r923  
    890890    Q_D(QFSFileEngine);
    891891    if (extension == AtEndExtension && d->fh && isSequential())
     892
     893
     894
     895
     896
     897
     898
     899
    892900        return feof(d->fh);
     901
    893902
    894903    if (extension == MapExtension) {
Note: See TracChangeset for help on using the changeset viewer.