diff --git a/clientgui/DlgOptions.cpp b/clientgui/DlgOptions.cpp
index 01ccff7..96210d7 100644
a
|
b
|
bool CDlgOptions::SaveSettings() { |
651 | 651 | CMainDocument* pDoc = wxGetApp().GetDocument(); |
652 | 652 | CBOINCBaseFrame* pFrame = wxGetApp().GetFrame(); |
653 | 653 | CSkinAdvanced* pSkinAdvanced = wxGetApp().GetSkinManager()->GetAdvanced(); |
654 | | int iBuffer = 0; |
| 654 | long lBuffer = 0; |
655 | 655 | wxString strBuffer = wxEmptyString; |
656 | 656 | |
657 | 657 | |
… |
… |
bool CDlgOptions::SaveSettings() { |
731 | 731 | pDoc->proxy_info.noproxy_hosts = (const char*)m_HTTPNoProxiesCtrl->GetValue().mb_str(); |
732 | 732 | } |
733 | 733 | strBuffer = m_HTTPPortCtrl->GetValue(); |
734 | | strBuffer.ToLong((long*)&iBuffer); |
735 | | pDoc->proxy_info.http_server_port = iBuffer; |
| 734 | strBuffer.ToLong((long*)&lBuffer); |
| 735 | pDoc->proxy_info.http_server_port = lBuffer; |
736 | 736 | |
737 | 737 | pDoc->proxy_info.use_socks_proxy = m_EnableSOCKSProxyCtrl->GetValue(); |
738 | 738 | pDoc->proxy_info.socks_server_name = (const char*)m_SOCKSAddressCtrl->GetValue().mb_str(); |
… |
… |
bool CDlgOptions::SaveSettings() { |
742 | 742 | pDoc->proxy_info.noproxy_hosts = (const char*)m_SOCKSNoProxiesCtrl->GetValue().mb_str(); |
743 | 743 | } |
744 | 744 | strBuffer = m_SOCKSPortCtrl->GetValue(); |
745 | | strBuffer.ToLong((long*)&iBuffer); |
746 | | pDoc->proxy_info.socks_server_port = iBuffer; |
| 745 | strBuffer.ToLong((long*)&lBuffer); |
| 746 | pDoc->proxy_info.socks_server_port = lBuffer; |
747 | 747 | |
748 | 748 | pDoc->SetProxyConfiguration(); |
749 | 749 | } |
diff --git a/clientgui/ProxyPage.cpp b/clientgui/ProxyPage.cpp
index d50b29a..f95c65e 100644
a
|
b
|
void CErrProxyPage::OnPageChanged( wxWizardExEvent& WXUNUSED(event) ) { |
392 | 392 | void CErrProxyPage::OnPageChanging( wxWizardExEvent& event ) { |
393 | 393 | CMainDocument* pDoc = wxGetApp().GetDocument(); |
394 | 394 | wxString strBuffer = wxEmptyString; |
395 | | int iBuffer = 0; |
| 395 | long lBuffer = 0; |
396 | 396 | |
397 | 397 | wxASSERT(pDoc); |
398 | 398 | wxASSERT(wxDynamicCast(pDoc, CMainDocument)); |
… |
… |
void CErrProxyPage::OnPageChanging( wxWizardExEvent& event ) { |
405 | 405 | pDoc->proxy_info.http_user_passwd = (const char*)m_pProxyHTTPPasswordCtrl->GetValue().mb_str(); |
406 | 406 | |
407 | 407 | strBuffer = m_pProxyHTTPPortCtrl->GetValue(); |
408 | | strBuffer.ToLong((long*)&iBuffer); |
409 | | pDoc->proxy_info.http_server_port = iBuffer; |
| 408 | strBuffer.ToLong((long*)&lBuffer); |
| 409 | pDoc->proxy_info.http_server_port = lBuffer; |
410 | 410 | |
411 | 411 | pDoc->proxy_info.use_socks_proxy = (m_pProxySOCKSServerCtrl->GetValue().Length() > 0); |
412 | 412 | pDoc->proxy_info.socks_server_name = (const char*)m_pProxySOCKSServerCtrl->GetValue().mb_str(); |
… |
… |
void CErrProxyPage::OnPageChanging( wxWizardExEvent& event ) { |
414 | 414 | pDoc->proxy_info.socks5_user_passwd = (const char*)m_pProxySOCKSPasswordCtrl->GetValue().mb_str(); |
415 | 415 | |
416 | 416 | strBuffer = m_pProxySOCKSPortCtrl->GetValue(); |
417 | | strBuffer.ToLong((long*)&iBuffer); |
418 | | pDoc->proxy_info.socks_server_port = iBuffer; |
| 417 | strBuffer.ToLong((long*)&lBuffer); |
| 418 | pDoc->proxy_info.socks_server_port = lBuffer; |
419 | 419 | |
420 | 420 | pDoc->SetProxyConfiguration(); |
421 | 421 | } |
diff --git a/clientgui/ViewProjects.cpp b/clientgui/ViewProjects.cpp
index 353ff29..5cc8d92 100644
a
|
b
|
wxInt32 CViewProjects::ConvertWebsiteIndexToLink(wxInt32 iProjectIndex, wxInt32 |
1187 | 1187 | wxInt32 CViewProjects::ConvertLinkToWebsiteIndex(const wxString& strLink, wxInt32& iProjectIndex, wxInt32& iWebsiteIndex) { |
1188 | 1188 | wxString strTemplate = strLink; |
1189 | 1189 | wxString strBuffer = wxEmptyString; |
| 1190 | long lProjectIndex, lWebsiteIndex; |
1190 | 1191 | |
1191 | 1192 | strTemplate.Replace(wxT("web:"), wxEmptyString); |
1192 | 1193 | |
1193 | 1194 | strBuffer = strTemplate; |
1194 | 1195 | strBuffer.Remove(strBuffer.Find(wxT(":"))); |
1195 | | strBuffer.ToLong((long*) &iProjectIndex); |
| 1196 | strBuffer.ToLong((long*) &lProjectIndex); |
| 1197 | iProjectIndex = lProjectIndex; |
1196 | 1198 | |
1197 | 1199 | strBuffer = strTemplate; |
1198 | 1200 | strBuffer = strBuffer.Mid(strBuffer.Find(wxT(":")) + 1); |
1199 | | strBuffer.ToLong((long*) &iWebsiteIndex); |
| 1201 | strBuffer.ToLong((long*) &lWebsiteIndex); |
| 1202 | iWebsiteIndex = lWebsiteIndex; |
1200 | 1203 | |
1201 | 1204 | return 0; |
1202 | 1205 | } |