From: Vadim Zeitlin Date: Thu, 31 Jul 2003 00:58:16 +0000 (+0000) Subject: suppress errors when loading uxtheme.dll X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7f9fe7891d7a8f8fd24c7c7261c28cb2e8329a79?ds=inline suppress errors when loading uxtheme.dll git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22400 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/uxtheme.cpp b/src/msw/uxtheme.cpp index e41159bad0..dee239cd43 100644 --- a/src/msw/uxtheme.cpp +++ b/src/msw/uxtheme.cpp @@ -39,10 +39,7 @@ #include "wx/module.h" -#include "wx/msw/wrapwin.h" - #include "wx/msw/uxtheme.h" -#include "wx/msw/private.h" // ============================================================================ // wxUxThemeModule @@ -111,6 +108,9 @@ wxUxThemeEngine* wxUxThemeEngine::Get() bool wxUxThemeEngine::Initialize() { + // we're prepared to handle the errors + wxLogNull noLog; + if ( !m_dllUxTheme.Load(_T("uxtheme.dll")) ) return false;