diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-08-18 21:17:04 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-08-18 21:17:04 +0000 |
commit | 0c4171bbee67301b31c24b08d074313cdf98282f (patch) | |
tree | 2ed0558660956756dcb3929872dff0e572aef0d0 /protocols/Tox/src/tox_events.cpp | |
parent | a93391bc7442c024d5e795e207b8422883e7bfdf (diff) |
Tox: build fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@10234 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_events.cpp')
-rw-r--r-- | protocols/Tox/src/tox_events.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Tox/src/tox_events.cpp b/protocols/Tox/src/tox_events.cpp index cef4bb7cc2..51d2421629 100644 --- a/protocols/Tox/src/tox_events.cpp +++ b/protocols/Tox/src/tox_events.cpp @@ -131,7 +131,7 @@ int CToxProto::OnSettingsChanged(MCONTACT hContact, LPARAM lParam) DBCONTACTWRITESETTING* dbcws = (DBCONTACTWRITESETTING*)lParam;
if (hContact == NULL && !strcmp(dbcws->szModule, m_szModuleName) && !strcmp(dbcws->szSetting, "Nick"))
{
- if (tox_set_name(tox, (uint8_t*)(char*)ptrA(mir_utf8encodeW(dbcws->value.ptszVal)), _tcslen(dbcws->value.ptszVal)))
+ if (tox_set_name(tox, (uint8_t*)(char*)ptrA(mir_utf8encodeW(dbcws->value.ptszVal)), (uint16_t)_tcslen(dbcws->value.ptszVal)))
{
SaveToxData();
}
@@ -205,7 +205,7 @@ void CToxProto::OnStatusMessageChanged(Tox *tox, const int friendnumber, const u void CToxProto::OnUserStatusChanged(Tox *tox, int32_t friendnumber, uint8_t usertatus, void *arg)
{
TOX_USERSTATUS userstatus = (TOX_USERSTATUS)usertatus;
- if (userstatus == TOX_USERSTATUS::TOX_USERSTATUS_NONE)
+ if (userstatus == TOX_USERSTATUS_NONE)
{
return;
}
|