diff options
author | mataes2007 <mataes2007@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb> | 2012-02-08 14:28:23 +0000 |
---|---|---|
committer | mataes2007 <mataes2007@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb> | 2012-02-08 14:28:23 +0000 |
commit | c2ee4614da32986d542e988d98d5dcf964678e95 (patch) | |
tree | 6972a1a5ea5a26e7f460b99f3ba3e146034f47a7 /Popup/src/avatars.cpp | |
parent | b164d030ace150aa292e8009d2d55c05005072b0 (diff) |
Popup:
Unicode avatars support
git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@268 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb
Diffstat (limited to 'Popup/src/avatars.cpp')
-rw-r--r-- | Popup/src/avatars.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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))
|