argc == 0 bug fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user