Ticket #1051: AdvancedFrame_const.patch
File AdvancedFrame_const.patch, 877 bytes (added by , 13 years ago) |
---|
-
clientgui/AdvancedFrame.cpp
old new 1494 1494 int prog; 1495 1495 #endif 1496 1496 int argc = 3; 1497 char* argv[3]; 1497 char* const argv[3] = { 1498 const_cast<char *>("boincmgr"), 1499 const_cast<char *>("--multiple"), 1500 const_cast<char *>("") 1501 }; 1498 1502 1499 1503 wxString strExecutable = wxGetApp().GetRootDirectory() + wxGetApp().GetExecutableName(); 1500 1504 1501 argv[0] = "boincmgr";1502 argv[1] = "--multiple";1503 argv[2] = "";1504 1505 1505 run_program( 1506 1506 wxGetApp().GetRootDirectory().mb_str(), 1507 1507 strExecutable.mb_str(), … … 1510 1510 2.0, 1511 1511 prog 1512 1512 ); 1513 1513 1514 #else 1514 1515 char s[512]; 1515 1516 unsigned char procName[256];