diff options
Diffstat (limited to 'protocols/Tox/src')
-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*)
|