summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/VKontakte/src/vk_chats.cpp1
-rw-r--r--protocols/VKontakte/src/vk_dialogs.cpp8
2 files changed, 4 insertions, 5 deletions
diff --git a/protocols/VKontakte/src/vk_chats.cpp b/protocols/VKontakte/src/vk_chats.cpp
index f486af926a..f0440809d5 100644
--- a/protocols/VKontakte/src/vk_chats.cpp
+++ b/protocols/VKontakte/src/vk_chats.cpp
@@ -560,7 +560,6 @@ LPTSTR CVkProto::ChangeChatTopic(CVkChatInfo *cc)
void CVkProto::LogMenuHook(CVkChatInfo *cc, GCHOOK *gch)
{
- MCONTACT hContact;
if (!IsOnline())
return;
diff --git a/protocols/VKontakte/src/vk_dialogs.cpp b/protocols/VKontakte/src/vk_dialogs.cpp
index 9fd1d333c2..17a42b9cd4 100644
--- a/protocols/VKontakte/src/vk_dialogs.cpp
+++ b/protocols/VKontakte/src/vk_dialogs.cpp
@@ -137,9 +137,9 @@ void CVkWallPostForm::OnDestroy()
void CVkWallPostForm::On_btnShare_Click(CCtrlButton*)
{
- m_param->ptszUrl = mir_tstrdup(m_edtUrl.GetText());
- m_param->ptszMsg = mir_tstrdup(m_edtMsg.GetText());
- m_param->bFriendsOnly = m_cbOnlyForFriends.GetState();
+ m_param->ptszUrl = m_edtUrl.GetText();
+ m_param->ptszMsg = m_edtMsg.GetText();
+ m_param->bFriendsOnly = m_cbOnlyForFriends.GetState() != 0;
EndDialog(m_hwnd, 1);
}
@@ -217,7 +217,7 @@ void CVkGCCreateForm::btnOk_OnOk(CCtrlButton*)
bool bRes = !szUIds.IsEmpty();
if (bRes)
- m_proto->CreateNewChat(szUIds, m_edtTitle.GetText());
+ m_proto->CreateNewChat(szUIds, ptrT(m_edtTitle.GetText()));
EndDialog(m_hwnd, bRes);
}