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
This commit is contained in:
Julian Smart
2006-02-11 14:57:25 +00:00
parent 0a0e6932cd
commit d5ea3919a3

View File

@@ -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();