From 18540e71624543fd0181b764a6913aa6bf8eb75d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 20 Jun 2012 08:05:51 +0000 Subject: more avatar fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@498 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/proto.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/FacebookRM/proto.cpp') diff --git a/protocols/FacebookRM/proto.cpp b/protocols/FacebookRM/proto.cpp index f53dce96db..e51a39f1dd 100644 --- a/protocols/FacebookRM/proto.cpp +++ b/protocols/FacebookRM/proto.cpp @@ -73,10 +73,10 @@ FacebookProto::FacebookProto(const char* proto_name,const TCHAR* username) SkinAddNewSoundExT( "NewsFeed", m_tszUserName, LPGENT( "News Feed" ) ); SkinAddNewSoundExT( "OtherEvent", m_tszUserName, LPGENT( "Other Event" ) ); - char *profile = Utils_ReplaceVars("%miranda_avatarcache%"); - def_avatar_folder_ = std::string(profile)+"\\"+m_szModuleName; + TCHAR *profile = Utils_ReplaceVarsT( _T("%miranda_avatarcache%")); + def_avatar_folder_ = std::tstring(profile) + _T("\\") + m_tszUserName; mir_free(profile); - hAvatarFolder_ = FoldersRegisterCustomPath(m_szModuleName, "Avatars", def_avatar_folder_.c_str()); + hAvatarFolder_ = FoldersRegisterCustomPathT(m_szModuleName, "Avatars", def_avatar_folder_.c_str()); // Set all contacts offline -- in case we crashed SetAllContactStatuses( ID_STATUS_OFFLINE ); -- cgit v1.2.3