X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a47f55c5aab5a4a0fdbe06f69840c470b3947d9a..19abad600cbfe9f0f7af81f127f36b89a80c569e:/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