Fixed style

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36243 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2005-11-24 17:31:35 +00:00
parent 0e3c83a736
commit 38c39207e9

View File

@@ -710,15 +710,17 @@ long wxExecute(const wxString& cmd, int flags, wxProcess *handler)
#ifndef __WXWINCE__ #ifndef __WXWINCE__
dwFlags |= CREATE_DEFAULT_ERROR_MODE ; dwFlags |= CREATE_DEFAULT_ERROR_MODE ;
#else #else
wxString ModuleName; wxString moduleName;
wxString Arguments; wxString arguments;
{ int idx = command.Find( wxT(' ') ); int idx = command.Find( wxT(' ') );
if( idx >= 0 ) { if( idx >= 0 )
ModuleName = command.Left(idx); {
Arguments = command.Mid(idx+1); moduleName = command.Left(idx);
} else { arguments = command.Mid(idx+1);
ModuleName = command; }
} else
{
moduleName = command;
} }
#endif #endif
@@ -728,9 +730,9 @@ long wxExecute(const wxString& cmd, int flags, wxProcess *handler)
// Win32 allows for null // Win32 allows for null
#ifdef __WXWINCE__ #ifdef __WXWINCE__
(wxChar *) (wxChar *)
ModuleName.c_str(), // application name moduleName.c_str(), // application name
(wxChar *) (wxChar *)
Arguments.c_str(), // arguments arguments.c_str(), // arguments
#else #else
NULL, // application name (use only cmd line) NULL, // application name (use only cmd line)