From b35191eb54e6f307de8406f4f246d8f386fac7bf Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 7 Sep 2002 20:26:07 +0000 Subject: [PATCH] don't overwrite the app name with argv[0] if it had been already set git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17057 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/app.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/msw/app.cpp b/src/msw/app.cpp index a6ba1ee020..8f9782d2d1 100644 --- a/src/msw/app.cpp +++ b/src/msw/app.cpp @@ -474,7 +474,9 @@ void wxApp::ConvertToStandardCommandArgs(const char* lpCmdLine) wxString name; wxFileName::SplitPath(argv[0], NULL, &name, NULL); - SetAppName(name); + // but don't override the name already set by the user code, if any + if ( GetAppName().empty() ) + SetAppName(name); // copy all the other arguments to wxApp::argv[] for ( int i = 1; i < argc; i++ ) -- 2.45.2