X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bb2775b9e8bc1b882d9a5c7ffe68371717b9e5dc..82a234fbff7fbc174c9459980995b73f37087992:/samples/mfc/mfctest.cpp diff --git a/samples/mfc/mfctest.cpp b/samples/mfc/mfctest.cpp index 7a3f3d34e4..d0c92194ab 100644 --- a/samples/mfc/mfctest.cpp +++ b/samples/mfc/mfctest.cpp @@ -232,6 +232,9 @@ BOOL CTheApp::OnIdle(LONG WXUNUSED(lCount)) bool MyApp::OnInit() { + if ( !wxApp::OnInit() ) + return false; + #if !START_WITH_MFC_WINDOW // as we're not inside wxWidgets main loop, the default logic doesn't work // in our case and we need to do this explicitly