From 5bf8fb1879c39f2a6ae0416b4ea4857fa2390f6c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 16 Apr 2017 18:06:03 +0200 Subject: [PATCH] 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 --- src/common/init.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/init.cpp b/src/common/init.cpp index 69af1e154d..8ee90a73ff 100644 --- a/src/common/init.cpp +++ b/src/common/init.cpp @@ -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());