Changeset 1116


Ignore:
Timestamp:
Mar 4, 2013, 10:31:22 PM (12 years ago)
Author:
Dmitry A. Kuminov
Message:

corelib: Fix enumerating root drives with QDirIterator (r1114 regression).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/corelib/io/qfsfileengine_iterator_os2.cpp

    r1114 r1116  
    271271#else // !QT_OS2_USE_DOSFINDFIRST
    272272        } else {
    273             // DosFindFirst is unaware of symlinks; help it
    274             path = QFileInfo(path).canonicalFilePath().append(QLatin1String("/*"));
     273            // DosFindFirst is unaware of symlinks; help it with canonicalFilePath()
     274            QString mask = QFileInfo(path).canonicalFilePath().append(QLatin1String("/*"));
     275            mask = QDir::toNativeSeparators(QDir::cleanPath(mask));
    275276            ULONG count = 1;
    276             if (DosFindFirst(QFile::encodeName(path).constData(),
     277            if (DosFindFirst(QFile::encodeName(mask).constData(),
    277278                             &that->platform->hdir,
    278279                             FILE_NORMAL | FILE_READONLY | FILE_HIDDEN |
Note: See TracChangeset for help on using the changeset viewer.