X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ff3e84ffdc91ee8a52b3ab646e48d44d62de80e1..25f701e6324fe5b1cf4c9b87621183ed4b863f64:/samples/sound/sound.cpp 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"));