Commit 47cf3a06 authored by dickelbeck's avatar dickelbeck

wrap freeroute.jnlp path in double quotes

parent 3920946e
...@@ -295,7 +295,9 @@ void dialog_freeroute_exchange::OnButton5Click( wxCommandEvent& event ) ...@@ -295,7 +295,9 @@ void dialog_freeroute_exchange::OnButton5Click( wxCommandEvent& event )
if( wxFileExists( FullFileName ) ) 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 ); ProcessExecute( command );
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment