diff options
author | Zeno Albisser <zeno.albisser@nokia.com> | 2010-04-29 14:56:12 (GMT) |
---|---|---|
committer | Zeno Albisser <zeno.albisser@nokia.com> | 2010-05-03 13:47:43 (GMT) |
commit | 9c419f945f1644e1bb66f4b5216a3d3adddb75b9 (patch) | |
tree | 32341e6521621b820b3cc02380bfbc288a82f752 /src/corelib/plugin/qlibrary.cpp | |
parent | 9c56dc1a2540a3bd6215d1165827f619c84a0b34 (diff) | |
download | Qt-9c419f945f1644e1bb66f4b5216a3d3adddb75b9.zip Qt-9c419f945f1644e1bb66f4b5216a3d3adddb75b9.tar.gz Qt-9c419f945f1644e1bb66f4b5216a3d3adddb75b9.tar.bz2 |
Fix to allow upper- and lowercase .dll suffix on windows
This fix is needed since windows uses case insensitive filesystems.
Reviewed-by: Joao
Task-number: QTBUG-10305
Diffstat (limited to 'src/corelib/plugin/qlibrary.cpp')
-rw-r--r-- | src/corelib/plugin/qlibrary.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/plugin/qlibrary.cpp b/src/corelib/plugin/qlibrary.cpp index 2ed113d..ccde2b0 100644 --- a/src/corelib/plugin/qlibrary.cpp +++ b/src/corelib/plugin/qlibrary.cpp @@ -534,7 +534,7 @@ bool QLibraryPrivate::loadPlugin() \table \header \i Platform \i Valid suffixes - \row \i Windows \i \c .dll + \row \i Windows \i \c .dll, \c .DLL \row \i Unix/Linux \i \c .so \row \i AIX \i \c .a \row \i HP-UX \i \c .sl, \c .so (HP-UXi) @@ -547,7 +547,7 @@ bool QLibraryPrivate::loadPlugin() bool QLibrary::isLibrary(const QString &fileName) { #if defined(Q_OS_WIN32) || defined(Q_OS_WINCE) - return fileName.endsWith(QLatin1String(".dll")); + return fileName.endsWith(QLatin1String(".dll"), Qt::CaseInsensitive); #elif defined(Q_OS_SYMBIAN) // Plugin stubs are also considered libraries in Symbian. return (fileName.endsWith(QLatin1String(".dll")) || |