From 50ef256ed3e52defe91655da5e3f6a9e913c9e2a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 1 Mar 1999 15:49:34 +0000 Subject: [PATCH] argc == 0 bug fixed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/app.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/msw/app.cpp b/src/msw/app.cpp index b87a7a9f14..516e779441 100644 --- a/src/msw/app.cpp +++ b/src/msw/app.cpp @@ -398,12 +398,8 @@ void wxApp::ConvertToStandardCommandArgs(char* lpCmdLine) char name[260]; // 260 is MAX_PATH value from windef.h ::GetModuleFileName(wxhInstance, name, WXSIZEOF(name)); - // GNUWIN32 already fills in the first arg with the application name. - // JACS: apparently not now (b20 and above?) -#if 0 // !defined(__GNUWIN32__) args.Add(name); - count ++; -#endif + count++; strcpy(name, wxFileNameFromPath(name)); wxStripExtension(name); -- 2.45.2