Changeset 929
- Timestamp:
- Aug 1, 2011, 9:57:29 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/corelib/io/qfsfileengine.cpp
r923 r929 890 890 Q_D(QFSFileEngine); 891 891 if (extension == AtEndExtension && d->fh && isSequential()) 892 #ifdef Q_OS_OS2893 // On OS/2 feof() doesn't return 1 when the stream is a pipe and the894 // other end of the pipe gets closed. This makes programs using the895 // somewhat incorrect "while (qfile.atEnd())..." loop spin forever (UIC896 // is one of such programs). In order to fix it, we use ferror() which897 // does return 1 in cases like that.898 return feof(d->fh) || ferror(d->fh);899 #else900 892 return feof(d->fh); 901 #endif902 893 903 894 if (extension == MapExtension) {
Note:
See TracChangeset
for help on using the changeset viewer.