summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_profile.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-12-18 21:17:25 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-12-18 21:17:25 +0300
commitd437b483c5a9ae02042f4dfe7b66d83e2daeffce (patch)
treeb925b6e161271bfb4fac9ec1953be4da5a7ac573 /protocols/Tox/src/tox_profile.cpp
parentd0034ab674ee7b858c9c7ebb1fa828bef8ba9eef (diff)
compilation fix
Diffstat (limited to 'protocols/Tox/src/tox_profile.cpp')
-rw-r--r--protocols/Tox/src/tox_profile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Tox/src/tox_profile.cpp b/protocols/Tox/src/tox_profile.cpp
index 5abeb5da15..c10269e40f 100644
--- a/protocols/Tox/src/tox_profile.cpp
+++ b/protocols/Tox/src/tox_profile.cpp
@@ -16,7 +16,7 @@ wchar_t* CToxProto::GetToxProfilePath(const wchar_t *accountName)
return profilePath;
}
-static INT_PTR EnterPassword(void *param)
+static INT_PTR CALLBACK EnterPassword(void *param)
{
CToxProto *pThis = (CToxProto*)param;
@@ -172,7 +172,7 @@ CToxPasswordEditor::CToxPasswordEditor(CToxProto *proto) :
void CToxPasswordEditor::OnChange(CCtrlBase*)
{
- m_ok.Enable(GetWindowTextLength(m_password.GetHwnd()));
+ m_ok.Enable(GetWindowTextLength(m_password.GetHwnd()) != 0);
}
void CToxPasswordEditor::OnOk(CCtrlButton*)