diff options
author | George Hazan <ghazan@miranda.im> | 2017-12-18 21:17:25 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-12-18 21:17:25 +0300 |
commit | d437b483c5a9ae02042f4dfe7b66d83e2daeffce (patch) | |
tree | b925b6e161271bfb4fac9ec1953be4da5a7ac573 | |
parent | d0034ab674ee7b858c9c7ebb1fa828bef8ba9eef (diff) |
compilation fix
-rw-r--r-- | protocols/Tox/src/tox_profile.cpp | 4 |
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*)
|