summaryrefslogtreecommitdiff
path: root/plugins/CloudFile/src
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2018-02-25 14:45:28 +0300
committeraunsane <aunsane@gmail.com>2018-02-25 14:45:28 +0300
commita76776079b6d15e92dffd0c5c0016389092b1c8b (patch)
treeac686f25c8714b11824624b7773f499035b6827c /plugins/CloudFile/src
parent7fc01c9c474a732cd8b978d2f163f0839b2f956d (diff)
Fixes related with 7fc01c9
Diffstat (limited to 'plugins/CloudFile/src')
-rw-r--r--plugins/CloudFile/src/oauth.cpp8
-rw-r--r--plugins/CloudFile/src/oauth.h4
-rw-r--r--plugins/CloudFile/src/resource.h2
-rw-r--r--plugins/CloudFile/src/transfers.cpp2
4 files changed, 8 insertions, 8 deletions
diff --git a/plugins/CloudFile/src/oauth.cpp b/plugins/CloudFile/src/oauth.cpp
index 1f837f021d..9ecd3a9ab8 100644
--- a/plugins/CloudFile/src/oauth.cpp
+++ b/plugins/CloudFile/src/oauth.cpp
@@ -15,14 +15,14 @@ COAuthDlg::COAuthDlg(CCloudService *service, const char *authUrl, pThreadFuncOwn
void COAuthDlg::OnInitDialog()
{
- /*CCtrlBase *ctrl = FindControl(IDC_AUTH_TEXT);
- ptrW format(ctrl->GetText());
+ CCtrlLabel &ctrl = *(CCtrlLabel*)FindControl(IDC_AUTH_TEXT);
+ ptrW format(ctrl.GetText());
wchar_t text[MAX_PATH];
mir_snwprintf(text, (const wchar_t*)format, m_service->GetUserName());
- ctrl->SetText(text);*/
+ ctrl.SetText(text);
}
-void COAuthDlg::Auth_OnClick(CCtrlButton*)
+void COAuthDlg::Auth_OnClick(CCtrlHyperlink*)
{
if (SUCCEEDED(OleInitialize(NULL))) {
CComPtr<IWebBrowser2> browser;
diff --git a/plugins/CloudFile/src/oauth.h b/plugins/CloudFile/src/oauth.h
index cbc4b3855e..e38ae45fa3 100644
--- a/plugins/CloudFile/src/oauth.h
+++ b/plugins/CloudFile/src/oauth.h
@@ -8,14 +8,14 @@ private:
const char *m_authUrl;
pThreadFuncOwner m_requestAccessTokenThread;
- CCtrlButton m_authorize;
+ CCtrlHyperlink m_authorize;
CCtrlEdit m_code;
CCtrlButton m_ok;
protected:
void OnInitDialog() override;
- void Auth_OnClick(CCtrlButton*);
+ void Auth_OnClick(CCtrlHyperlink*);
void Code_OnChange(CCtrlBase*);
void Ok_OnClick(CCtrlButton*);
diff --git a/plugins/CloudFile/src/resource.h b/plugins/CloudFile/src/resource.h
index 5a625809ca..aa5daf96da 100644
--- a/plugins/CloudFile/src/resource.h
+++ b/plugins/CloudFile/src/resource.h
@@ -29,7 +29,7 @@
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 132
#define _APS_NEXT_COMMAND_VALUE 40001
-#define _APS_NEXT_CONTROL_VALUE 1032
+#define _APS_NEXT_CONTROL_VALUE 1033
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif
diff --git a/plugins/CloudFile/src/transfers.cpp b/plugins/CloudFile/src/transfers.cpp
index b72c934abb..c70dbcf33f 100644
--- a/plugins/CloudFile/src/transfers.cpp
+++ b/plugins/CloudFile/src/transfers.cpp
@@ -8,7 +8,7 @@ INT_PTR CCloudService::SendFileInterceptor(WPARAM, LPARAM lParam)
for (auto &service : Services) {
auto it = service->InterceptedContacts.find(pccsd->hContact);
if (it == service->InterceptedContacts.end())
- return CALLSERVICE_NOTFOUND;
+ continue;
service->InterceptedContacts.erase(it);
return (INT_PTR)service->SendFile(pccsd->hContact, (wchar_t*)pccsd->wParam, (wchar_t**)pccsd->lParam);
}