--- a/src/corelib/plugin/qlibrary_win.cpp +++ b/src/corelib/plugin/qlibrary_win.cpp @@ -86,7 +86,12 @@ bool QLibraryPrivate::load_sys() QStringList attempts; if (pluginState != IsAPlugin) - attempts.append(fileName + QLatin1String(".dll")); + { + if( fileName.endsWith( QLatin1String(".dll"), Qt::CaseInsensitive ) ) + attempts.append(fileName); + else + attempts.append(fileName + QLatin1String(".dll")); + } // If the fileName is an absolute path we try that first, otherwise we // use the system-specific suffix first