Don't use libc for converting the command line

params to Unicode as it will crash.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17577 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2002-10-20 10:10:56 +00:00
parent 3a6fb21d40
commit d51bad0347
2 changed files with 6 additions and 4 deletions

View File

@@ -756,7 +756,7 @@ int wxEntryInitGui()
retValue = -1;
wxGetRootWindow();
return retValue;
}
@@ -818,7 +818,8 @@ int wxEntry( int argc, char *argv[] )
int mb_argc = 0;
while (mb_argc < argc)
{
wxTheApp->argv[mb_argc] = wxStrdup(wxConvLibc.cMB2WX(argv[mb_argc]));
wxString tmp = wxString::FromAscii( argv[mb_argc] );
wxTheApp->argv[mb_argc] = wxStrdup( tmp.c_str() );
mb_argc++;
}
wxTheApp->argv[mb_argc] = (wxChar *)NULL;

View File

@@ -756,7 +756,7 @@ int wxEntryInitGui()
retValue = -1;
wxGetRootWindow();
return retValue;
}
@@ -818,7 +818,8 @@ int wxEntry( int argc, char *argv[] )
int mb_argc = 0;
while (mb_argc < argc)
{
wxTheApp->argv[mb_argc] = wxStrdup(wxConvLibc.cMB2WX(argv[mb_argc]));
wxString tmp = wxString::FromAscii( argv[mb_argc] );
wxTheApp->argv[mb_argc] = wxStrdup( tmp.c_str() );
mb_argc++;
}
wxTheApp->argv[mb_argc] = (wxChar *)NULL;