summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/avatars.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-03-02 16:36:33 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-03-02 16:36:33 +0000
commit378f61eacc8338f52f1eea336c0f1226e33485bc (patch)
tree51815d2aae8a7178b052a75e163aed277280535c /protocols/FacebookRM/src/avatars.cpp
parente27c47eb062d54f15846ce95bbcd3f6218ca4ab7 (diff)
fix for registering relative avatar path in Facebook
git-svn-id: http://svn.miranda-ng.org/main/trunk@3843 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/avatars.cpp')
-rw-r--r--protocols/FacebookRM/src/avatars.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/avatars.cpp b/protocols/FacebookRM/src/avatars.cpp
index 81907dabe9..3285bd2e89 100644
--- a/protocols/FacebookRM/src/avatars.cpp
+++ b/protocols/FacebookRM/src/avatars.cpp
@@ -130,8 +130,9 @@ std::tstring FacebookProto::GetAvatarFolder()
TCHAR path[MAX_PATH];
if ( hAvatarFolder_ && FoldersGetCustomPathT(hAvatarFolder_, path, SIZEOF(path), _T("")) == 0 )
return path;
- else
- return def_avatar_folder_;
+
+ mir_sntprintf(path, SIZEOF(path), _T("%s\\%s"), (TCHAR*)VARST( _T("%miranda_avatarcache%")), m_tszUserName);
+ return path;
}
int FacebookProto::GetAvatarCaps(WPARAM wParam, LPARAM lParam)