mirror of https://github.com/BOINC/boinc.git
parent
f087ac94ca
commit
f01f867d38
|
@ -1491,14 +1491,14 @@ void CAdvancedFrame::OnLaunchNewInstance(wxCommandEvent& WXUNUSED(event)) {
|
|||
int prog;
|
||||
#endif
|
||||
int argc = 3;
|
||||
char* argv[3];
|
||||
char* const argv[3] = {
|
||||
const_cast<char *>("boincmgr"),
|
||||
const_cast<char *>("--multiple"),
|
||||
const_cast<char *>("")
|
||||
};
|
||||
|
||||
wxString strExecutable = wxGetApp().GetRootDirectory() + wxGetApp().GetExecutableName();
|
||||
|
||||
argv[0] = "boincmgr";
|
||||
argv[1] = "--multiple";
|
||||
argv[2] = "";
|
||||
|
||||
run_program(
|
||||
wxGetApp().GetRootDirectory().mb_str(),
|
||||
strExecutable.mb_str(),
|
||||
|
|
Loading…
Reference in New Issue