]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied patch [ 1417709 ] wxFSVolume produces error messagebox
authorJulian Smart <julian@anthemion.co.uk>
Sat, 11 Feb 2006 14:57:25 +0000 (14:57 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sat, 11 Feb 2006 14:57:25 +0000 (14:57 +0000)
(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

src/msw/app.cpp

index f41554eb466509fffa646a67aaa751b32f8474de..af76477049a984609f08f17247387c83263475ad 100644 (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();