X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8f793b407c6962ab301fd618d97d3314dbe112d6..77c5e9230e558873be25c8a5472b9b9038b03466:/src/mac/app.cpp diff --git a/src/mac/app.cpp b/src/mac/app.cpp index f863e938af..baa2127bbf 100644 --- a/src/mac/app.cpp +++ b/src/mac/app.cpp @@ -609,10 +609,11 @@ bool wxApp::Initialize(int& argc, wxChar **argv) if ( argc > 1 ) { static const wxChar *ARG_PSN = _T("-psn_"); - if ( wxStrncmp(argv[1], ARG_PSN, sizeof(ARG_PSN) - 1) == 0 ) + if ( wxStrncmp(argv[1], ARG_PSN, wxStrlen(ARG_PSN)) == 0 ) { // remove this argument - memmove(argv, argv + 1, argc--); + --argc; + memmove(argv + 1, argv + 2, argc * sizeof(char *)); } } @@ -1010,14 +1011,6 @@ wxApp::wxApp() #endif } -bool wxApp::Initialized() -{ - if (GetTopWindow()) - return TRUE; - else - return FALSE; -} - int wxApp::MainLoop() { m_keepGoing = TRUE;