summaryrefslogtreecommitdiffstats
path: root/src/corelib/plugin/qlibrary.cpp
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-11-04 01:14:49 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-11-04 01:14:49 (GMT)
commite042014961636d459dc84df93ad2cca96049e2d1 (patch)
tree483fac9c3e0e88d60527c9675fd0789253204fb4 /src/corelib/plugin/qlibrary.cpp
parent25e7b091c44c1cff2f74551a0603e85b4c286260 (diff)
parent8caacf51667d4cf770b18a8b59e46f842861210e (diff)
downloadQt-e042014961636d459dc84df93ad2cca96049e2d1.zip
Qt-e042014961636d459dc84df93ad2cca96049e2d1.tar.gz
Qt-e042014961636d459dc84df93ad2cca96049e2d1.tar.bz2
Merge branch '4.6' of git://scm.dev.nokia.troll.no/qt/qt into kinetic-declarativeui
Conflicts: configure.exe src/gui/graphicsview/qgraphicsitem_p.h
Diffstat (limited to 'src/corelib/plugin/qlibrary.cpp')
-rw-r--r--src/corelib/plugin/qlibrary.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/plugin/qlibrary.cpp b/src/corelib/plugin/qlibrary.cpp
index 2b463a1..6496876 100644
--- a/src/corelib/plugin/qlibrary.cpp
+++ b/src/corelib/plugin/qlibrary.cpp
@@ -659,7 +659,10 @@ bool QLibraryPrivate::isPlugin(QSettings *settings)
#endif
if (!pHnd) {
#ifdef Q_OS_WIN
+ //avoid 'Bad Image' message box
+ UINT oldmode = SetErrorMode(SEM_FAILCRITICALERRORS|SEM_NOOPENFILEERRORBOX);
hTempModule = ::LoadLibraryEx((wchar_t*)QDir::toNativeSeparators(fileName).utf16(), 0, DONT_RESOLVE_DLL_REFERENCES);
+ SetErrorMode(oldmode);
#else
# if defined(Q_OS_SYMBIAN)
//Guard against accidentally trying to load non-plugin libraries by making sure the stub exists