summaryrefslogtreecommitdiff
path: root/plugins/AvatarHistory/src/AvatarHistory.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-03-30 11:30:57 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-03-30 11:30:57 +0000
commitdb47dabaddfab41eb418eebfecac0ad3c841b8f0 (patch)
treeb6048b38bfd6842dd57480991e52ac8432a73f2d /plugins/AvatarHistory/src/AvatarHistory.cpp
parentacd44e01e1a9b0e0fb6b526e86d90b0a00d8a18b (diff)
removed not used headers
git-svn-id: http://svn.miranda-ng.org/main/trunk@4248 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/AvatarHistory/src/AvatarHistory.cpp')
-rw-r--r--plugins/AvatarHistory/src/AvatarHistory.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/AvatarHistory/src/AvatarHistory.cpp b/plugins/AvatarHistory/src/AvatarHistory.cpp
index 5248c3f1a1..4087b1fec5 100644
--- a/plugins/AvatarHistory/src/AvatarHistory.cpp
+++ b/plugins/AvatarHistory/src/AvatarHistory.cpp
@@ -181,7 +181,7 @@ static int AvatarChanged(WPARAM wParam, LPARAM lParam)
TCHAR *file = GetCachedAvatar(proto, hash);
if (file != NULL) {
- lstrcpyn(history_filename, file, MAX_REGS(history_filename));
+ lstrcpyn(history_filename, file, SIZEOF(history_filename));
mir_free(file);
}
else {
@@ -190,7 +190,7 @@ static int AvatarChanged(WPARAM wParam, LPARAM lParam)
else
GetProtocolFolder(history_filename, proto);
- mir_sntprintf(history_filename, MAX_REGS(history_filename),
+ mir_sntprintf(history_filename, SIZEOF(history_filename),
_T("%s\\%s"), history_filename, hash);
if (CopyImageFile(avatar->filename, history_filename))
@@ -242,7 +242,7 @@ static int PreShutdown(WPARAM wParam, LPARAM lParam)
static int ModulesLoaded(WPARAM wParam, LPARAM lParam)
{
- mir_sntprintf(basedir, MAX_REGS(basedir), _T("%s\\Avatars History"), profilePath);
+ mir_sntprintf(basedir, SIZEOF(basedir), _T("%s\\Avatars History"), profilePath);
hFolder = FoldersRegisterCustomPathT( LPGEN("Avatars"), LPGEN("Avatar History"),
PROFILE_PATHT _T("\\") CURRENT_PROFILET _T("\\Avatars History"));