X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ff3e84ffdc91ee8a52b3ab646e48d44d62de80e1..ab0f37b97b488f0ec3082dbb0abac66bd0c48bd6:/samples/sound/sound.cpp?ds=sidebyside diff --git a/samples/sound/sound.cpp b/samples/sound/sound.cpp index a517d1a405..4c4c869c83 100644 --- a/samples/sound/sound.cpp +++ b/samples/sound/sound.cpp @@ -159,6 +159,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("wxWidgets Sound Sample"));