From d14590f9a60a4ba217ba379273c9d41c1293ca82 Mon Sep 17 00:00:00 2001 From: Szymon Tokarz Date: Sun, 21 Oct 2012 22:53:31 +0000 Subject: Gadu-Gadu protocol - contact's avatars requesting fix - images transfer fix - some fixes in TCHAR handling should fix #5, #15 and #45 git-svn-id: http://svn.miranda-ng.org/main/trunk@2038 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Gadu-Gadu/src/gg_proto.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'protocols/Gadu-Gadu/src/gg_proto.cpp') diff --git a/protocols/Gadu-Gadu/src/gg_proto.cpp b/protocols/Gadu-Gadu/src/gg_proto.cpp index 0a0db3a173..1659f0178d 100644 --- a/protocols/Gadu-Gadu/src/gg_proto.cpp +++ b/protocols/Gadu-Gadu/src/gg_proto.cpp @@ -52,8 +52,8 @@ GGPROTO::GGPROTO(const char* pszProtoName, const TCHAR* tszUserName) // Register services createProtoService(PS_GETAVATARCAPS, &GGPROTO::getavatarcaps); createProtoService(PS_GETAVATARINFOT, &GGPROTO::getavatarinfo); - createProtoService(PS_GETMYAVATAR, &GGPROTO::getmyavatar); - createProtoService(PS_SETMYAVATAR, &GGPROTO::setmyavatar); + createProtoService(PS_GETMYAVATART, &GGPROTO::getmyavatar); + createProtoService(PS_SETMYAVATART, &GGPROTO::setmyavatar); createProtoService(PS_GETMYAWAYMSG, &GGPROTO::getmyawaymsg); createProtoService(PS_CREATEACCMGRUI, &GGPROTO::get_acc_mgr_gui); @@ -73,12 +73,12 @@ GGPROTO::GGPROTO(const char* pszProtoName, const TCHAR* tszUserName) TCHAR szPath[MAX_PATH]; TCHAR *tmpPath = Utils_ReplaceVarsT( _T("%miranda_avatarcache%")); - mir_sntprintf(szPath, MAX_PATH, _T("%s\\%s"), tmpPath, m_szModuleName); + mir_sntprintf(szPath, MAX_PATH, _T("%s\\%s"), tmpPath, m_tszUserName); mir_free(tmpPath); hAvatarsFolder = FoldersRegisterCustomPathT(m_szModuleName, "Avatars", szPath); tmpPath = Utils_ReplaceVarsT( _T("%miranda_userdata%")); - mir_sntprintf(szPath, MAX_PATH, _T("%s\\%s\\ImageCache"), tmpPath, m_szModuleName); + mir_sntprintf(szPath, MAX_PATH, _T("%s\\%s\\ImageCache"), tmpPath, m_tszUserName); mir_free(tmpPath); hImagesFolder = FoldersRegisterCustomPathT(m_szModuleName, "Images", szPath); } -- cgit v1.2.3