From: Julian Smart Date: Sat, 11 Feb 2006 14:57:25 +0000 (+0000) Subject: Applied patch [ 1417709 ] wxFSVolume produces error messagebox X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d5ea3919a3f2e7efedaa492bb442fe134a1f5c79 Applied patch [ 1417709 ] wxFSVolume produces error messagebox (following Vadim's suggestion to do this globally) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/app.cpp b/src/msw/app.cpp index f41554eb46..af76477049 100644 --- a/src/msw/app.cpp +++ b/src/msw/app.cpp @@ -300,6 +300,12 @@ bool wxApp::Initialize(int& argc, wxChar **argv) SHInitExtraControls(); #endif +#ifndef __WXWINCE__ + // Don't show a message box if a function such as SHGetFileInfo + // fails to find a device. + SetErrorMode(SEM_FAILCRITICALERRORS|SEM_NOOPENFILEERRORBOX); +#endif + wxOleInitialize(); RegisterWindowClasses();