summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_avatars.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-02-22 22:08:23 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-02-22 22:08:23 +0300
commit1163cd367fc081b85e4ec56b0299775453395702 (patch)
treeca4b50b5bb2ea1ec26a95b156f58aa3c1217cf76 /protocols/VKontakte/src/vk_avatars.cpp
parenteb6358318fc06c5d35f980a2dbd7e39b2748d4e5 (diff)
more correct fix version
Diffstat (limited to 'protocols/VKontakte/src/vk_avatars.cpp')
-rw-r--r--protocols/VKontakte/src/vk_avatars.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/vk_avatars.cpp b/protocols/VKontakte/src/vk_avatars.cpp
index 0bd3a7ff9b..af7e9680f4 100644
--- a/protocols/VKontakte/src/vk_avatars.cpp
+++ b/protocols/VKontakte/src/vk_avatars.cpp
@@ -152,8 +152,7 @@ void CVkProto::GetAvatarFileName(MCONTACT hContact, wchar_t *pwszDest, size_t cb
void CVkProto::SetAvatarUrl(MCONTACT hContact, CMStringW &wszUrl)
{
- ptrW oldUrl(getWStringA(hContact, "AvatarUrl"));
-
+ CMStringW oldUrl(ptrW(getWStringA(hContact, "AvatarUrl")));
if (wszUrl == oldUrl)
return;