summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_avatars.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/VKontakte/src/vk_avatars.cpp')
-rw-r--r--protocols/VKontakte/src/vk_avatars.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/vk_avatars.cpp b/protocols/VKontakte/src/vk_avatars.cpp
index f6e02d8c2c..29288a2a3a 100644
--- a/protocols/VKontakte/src/vk_avatars.cpp
+++ b/protocols/VKontakte/src/vk_avatars.cpp
@@ -145,8 +145,8 @@ void CVkProto::GetAvatarFileName(MCONTACT hContact, wchar_t *pwszDest, size_t cb
szFileType = p;
}
- LONG id = getDword(hContact, "ID", VK_INVALID_USER);
- wszPath.AppendFormat(L"%d%s", id, szFileType);
+ VKUserID_t iUserId = ReadVKUserID(hContact);
+ wszPath.AppendFormat(L"%d%s", iUserId, szFileType);
wcsncpy_s(pwszDest, cbLen, wszPath, _TRUNCATE);
}