]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/memcheck/memcheck.cpp
made all XPM const to avoid warnings from mingw32 4.0 and adopt the code accordingly...
[wxWidgets.git] / samples / memcheck / memcheck.cpp
index 9c7cebb9ba19754d6c6b376a4620f9e9cb837126..82cbc1e0c4d825bff438b164d989189bfd79d33f 100644 (file)
@@ -56,6 +56,9 @@ IMPLEMENT_APP(MyApp)
 // `Main program' equivalent, creating windows and returning main app frame
 bool MyApp::OnInit(void)
 {
+  if ( !wxApp::OnInit() )
+         return false;
+
   // Create the main frame window
   MyFrame *frame = new MyFrame((wxFrame *) NULL);