wrap freeroute.jnlp path in double quotes

This commit is contained in:
dickelbeck 2009-02-18 14:23:17 +00:00
parent 3920946ef1
commit 47cf3a0660
1 changed files with 3 additions and 1 deletions

View File

@ -295,7 +295,9 @@ void dialog_freeroute_exchange::OnButton5Click( wxCommandEvent& event )
if( wxFileExists( FullFileName ) )
{
command << wxT("javaws") << wxT( " " ) + FullFileName;
// Wrap FullFileName in double quotes in case it has C:\Program Files in it.
// The space is interpreted as an argument separator.
command << wxT("javaws") << wxChar(' ') << wxChar('"') << FullFileName << wxChar('"');
ProcessExecute( command );
return;
}