X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3eeb7e105edde9063e3595d48202bdf456b73651..60f0cf4e12e88d39764e107ee9949f6a52552e53:/samples/except/except.cpp diff --git a/samples/except/except.cpp b/samples/except/except.cpp index a63e63dea8..f401d6ce18 100644 --- a/samples/except/except.cpp +++ b/samples/except/except.cpp @@ -79,7 +79,7 @@ public: // program startup virtual bool OnInit(); - // 2nd-level exception handling: we get all the exceptions occuring in any + // 2nd-level exception handling: we get all the exceptions occurring in any // event handler here virtual bool OnExceptionInMainLoop(); @@ -238,6 +238,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();