From c2ee4614da32986d542e988d98d5dcf964678e95 Mon Sep 17 00:00:00 2001 From: mataes2007 Date: Wed, 8 Feb 2012 14:28:23 +0000 Subject: Popup: Unicode avatars support git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@268 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb --- Popup/src/avatars.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Popup/src/avatars.cpp') diff --git a/Popup/src/avatars.cpp b/Popup/src/avatars.cpp index 93cab8d..68fbac5 100644 --- a/Popup/src/avatars.cpp +++ b/Popup/src/avatars.cpp @@ -1,10 +1,10 @@ /* Popup Plus plugin for Miranda IM -Copyright © 2002 Luca Santarelli, - © 2004-2007 Victor Pavlychko - © 2010 MPK - © 2010 Merlin_de +Copyright � 2002 Luca Santarelli, + � 2004-2007 Victor Pavlychko + � 2010 MPK + � 2010 Merlin_de This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -40,10 +40,10 @@ PopupAvatar *PopupAvatar::create(HANDLE hContact) { avatarCacheEntry *av = (avatarCacheEntry *)CallService(MS_AV_GETAVATARBITMAP, (WPARAM)hContact, 0); // MessageBox(NULL, _T("00"), _T(MODULNAME_LONG), MB_OK); - if (av && (strlen(av->szFilename) > 4)) + if (av && (_tcslen(av->szFilename) > 4)) { // MessageBox(NULL, _T("01"), _T(MODULNAME_LONG), MB_OK); - if (!stricmp(av->szFilename+strlen(av->szFilename)-4, ".gif")) + if (!_tcsicmp(av->szFilename+_tcslen(av->szFilename)-4, _T(".gif"))) { // MessageBox(NULL, _T("02"), _T(MODULNAME_LONG), MB_OK); if (DBGetContactSettingByte(NULL, MODULNAME, "EnableGifAnimation", 1) && GDIPlus_IsAnimatedGIF(av->szFilename)) -- cgit v1.2.3