Fix fatal bug in the last commit: restore setting argc
Initialization of wxApp::argc was mistakenly removed, breaking the code iterating over wxApp::argv from 0 to it. See https://github.com/wxWidgets/wxWidgets/pull/462
This commit is contained in:
@@ -335,6 +335,7 @@ bool wxEntryStart(int& argc, wxChar **argv)
|
||||
|
||||
// remember, possibly modified (e.g. due to removal of toolkit-specific
|
||||
// parameters), command line arguments in member variables
|
||||
app->argc = argc;
|
||||
app->argv.Init(argc, argv);
|
||||
|
||||
wxCallAppCleanup callAppCleanup(app.get());
|
||||
|
Reference in New Issue
Block a user