diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2013-04-13 16:54:06 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2013-04-13 16:54:06 +0000 |
commit | 002cab8875c415238cdcc74276872bb33f8523e1 (patch) | |
tree | 5bbd31ea55da418018d9c40d4f937511d88ab462 /protocols/Skype/src/skype_profile.cpp | |
parent | 82c9e950fca702c8c9ae0074c90b81fe054d49df (diff) |
- fixed avatar set (loading on skype server)
- fixed search by name
git-svn-id: http://svn.miranda-ng.org/main/trunk@4439 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_profile.cpp')
-rw-r--r-- | protocols/Skype/src/skype_profile.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/Skype/src/skype_profile.cpp b/protocols/Skype/src/skype_profile.cpp index 081f8b22dc..360aa8eb75 100644 --- a/protocols/Skype/src/skype_profile.cpp +++ b/protocols/Skype/src/skype_profile.cpp @@ -8,7 +8,8 @@ void CSkypeProto::UpdateProfileAvatar(SEObject *obj, HANDLE hContact) wchar_t *path = this->GetContactAvatarFilePath(hContact);
SEBinary data = obj->GetBinProp(/* *::P_AVATAR_IMAGE */ 37);
- if ((newTS > oldTS) || (!newTS && data.size() > 0 && _waccess(path, 0) == -1) || (newTS && _waccess(path, 0) == -1)) //hack for avatars without timestamp
+ //if ((newTS > oldTS) || (!newTS && data.size() > 0 && _waccess(path, 0) == -1) || (newTS && _waccess(path, 0) == -1)) //hack for avatars without timestamp
+ if ((newTS > oldTS) || (!::PathFileExists(path)))
{
FILE* fp = _wfopen(path, L"wb");
if (fp)
|