X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ba59de5d95df686101f44abcdc2dec9f6f464e2a..b70362998b8f562923f6ed6708f06537ac056cd4:/samples/exec/exec.cpp diff --git a/samples/exec/exec.cpp b/samples/exec/exec.cpp index f0f1a4aa2b..5a85d67bf1 100644 --- a/samples/exec/exec.cpp +++ b/samples/exec/exec.cpp @@ -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));