]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/exec/exec.cpp
WinCE build fix.
[wxWidgets.git] / samples / exec / exec.cpp
index f0f1a4aa2bb21d7b8bca70b9b97e7956fc3829eb..5a85d67bf11eab46dfe88a1aa150c12a9a28fd28 100644 (file)
@@ -386,6 +386,9 @@ IMPLEMENT_APP(MyApp)
 // `Main program' equivalent: the program execution "starts" here
 bool MyApp::OnInit()
 {
+    if ( !wxApp::OnInit() )
+        return false;
+
     // Create the main application window
     MyFrame *frame = new MyFrame(_T("Exec wxWidgets sample"),
                                  wxDefaultPosition, wxSize(500, 140));