From d437b483c5a9ae02042f4dfe7b66d83e2daeffce Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 18 Dec 2017 21:17:25 +0300 Subject: compilation fix --- protocols/Tox/src/tox_profile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/Tox/src') 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*) -- cgit v1.2.3