X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/71307412f5aef70603636992a512d2c133361512..d029969fcc82892fed3f43d39b5e12c50d8afa2d:/samples/sound/sound.cpp diff --git a/samples/sound/sound.cpp b/samples/sound/sound.cpp index 22be97508f..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")); @@ -984,7 +987,7 @@ void MyFrame::OnSelectFile(wxCommandEvent& WXUNUSED(event)) #if wxUSE_FILEDLG wxFileDialog dlg(this, _T("Choose a sound file"), wxEmptyString, wxEmptyString, - _T("WAV files (*.wav)|*.wav"), wxOPEN|wxCHANGE_DIR); + _T("WAV files (*.wav)|*.wav"), wxFD_OPEN|wxFD_CHANGE_DIR); if ( dlg.ShowModal() == wxID_OK ) { m_soundFile = dlg.GetPath();