diff options
author | ElzorFox <elzorfox@ya.ru> | 2021-10-19 08:10:17 +0500 |
---|---|---|
committer | ElzorFox <elzorfox@ya.ru> | 2021-10-19 08:11:06 +0500 |
commit | bc2bf7670c35c658360629ce212963f0a8a1ac75 (patch) | |
tree | 9efcb69cdcc0c99e3e1e8bff83fec60a7defeb34 | |
parent | 4e1c17c7f3f69de7c3ea75168c0fded71e4cad52 (diff) |
VK: fix #2965
-rw-r--r-- | protocols/VKontakte/src/misc.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index ccfe86e283..b7bbad03bd 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -1717,8 +1717,9 @@ void CVkProto::AddVkDeactivateEvent(MCONTACT hContact, CMStringW& wszType) dbei.szModule = m_szModuleName;
dbei.timestamp = time(0);
dbei.eventType = VK_USER_DEACTIVATE_ACTION;
- dbei.cbBlob = (DWORD)mir_strlen(vkDeactivateEvent[iDEIdx].szDescription) + 1;
- dbei.pBlob = (PBYTE)mir_strdup(vkDeactivateEvent[iDEIdx].szDescription);
+ ptrA pszDescription(mir_utf8encode(vkDeactivateEvent[iDEIdx].szDescription));
+ dbei.cbBlob = (DWORD)mir_strlen(pszDescription) + 1;
+ dbei.pBlob = (PBYTE)mir_strdup(pszDescription);
dbei.flags = DBEF_UTF | (
(
m_vkOptions.bShowVkDeactivateEvents
|