(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
SHInitExtraControls();
#endif
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();
wxOleInitialize();
RegisterWindowClasses();