changed wxExecute(char **) version to take wxChar **
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16855 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -892,16 +892,18 @@ long wxExecute(const wxString& cmd, int flags, wxProcess *handler)
|
||||
#endif // Win16/32
|
||||
}
|
||||
|
||||
long wxExecute(char **argv, int flags, wxProcess *handler)
|
||||
long wxExecute(wxChar **argv, int flags, wxProcess *handler)
|
||||
{
|
||||
wxString command;
|
||||
|
||||
while ( *argv != NULL )
|
||||
for ( ;; )
|
||||
{
|
||||
command << *argv++ << ' ';
|
||||
}
|
||||
command += *argv++;
|
||||
if ( !*argv )
|
||||
break;
|
||||
|
||||
command.RemoveLast();
|
||||
command += _T(' ');
|
||||
}
|
||||
|
||||
return wxExecute(command, flags, handler);
|
||||
}
|
||||
|
Reference in New Issue
Block a user