summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorZeno Albisser <zeno.albisser@nokia.com>2010-04-29 14:56:12 (GMT)
committerQt Commercial Integration <QtCommercial@digia.com>2012-01-31 10:24:52 (GMT)
commit8be4ea0063dac6091ce896d019a149864b5d0003 (patch)
treeb451bb24d059395a17bc93b409a9c4f96ebfa6fe /src
parent0782c5d1ad6d57204a4ed9b17f0ce08734c6e3a9 (diff)
downloadQt-8be4ea0063dac6091ce896d019a149864b5d0003.zip
Qt-8be4ea0063dac6091ce896d019a149864b5d0003.tar.gz
Qt-8be4ea0063dac6091ce896d019a149864b5d0003.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')
-rw-r--r--src/corelib/plugin/qlibrary.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/plugin/qlibrary.cpp b/src/corelib/plugin/qlibrary.cpp
index 266c29e..1d8196f 100644
--- a/src/corelib/plugin/qlibrary.cpp
+++ b/src/corelib/plugin/qlibrary.cpp
@@ -496,7 +496,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)
@@ -509,7 +509,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")) ||