X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a47f55c5aab5a4a0fdbe06f69840c470b3947d9a..2190f6aa153416d1c225532bb026df98b3e273ad:/src/common/init.cpp diff --git a/src/common/init.cpp b/src/common/init.cpp index adb68c947c..ee3847634f 100644 --- a/src/common/init.cpp +++ b/src/common/init.cpp @@ -298,6 +298,12 @@ bool wxEntryStart(int& argc, wxChar **argv) return false; } + // remember, possibly modified (e.g. due to removal of toolkit-specific + // parameters), command line arguments in member variables + app->argc = argc; + app->argv = argv; + + wxCallAppCleanup callAppCleanup(app.get()); // for compatibility call the old initialization function too