summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-02-05 19:06:44 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-02-05 19:06:44 +0300
commit53c12d819ac27b540361f078e6435fa1141fe017 (patch)
tree58fa5f070e01e83dd07bba5e36a511b2f7d9a0f2 /plugins
parentd980bcb6bf63496bf2231e4f7eb17087cc0b2d9f (diff)
fixes #4171 (Avatar History: текст в настройках выбора пути не соответствует действительности)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/AvatarHistory/src/AvatarHistory.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/AvatarHistory/src/AvatarHistory.cpp b/plugins/AvatarHistory/src/AvatarHistory.cpp
index ecedb62cc0..ce2257fa7d 100644
--- a/plugins/AvatarHistory/src/AvatarHistory.cpp
+++ b/plugins/AvatarHistory/src/AvatarHistory.cpp
@@ -27,7 +27,6 @@ uint32_t mirVer;
HANDLE hFolder = nullptr;
-wchar_t profilePath[MAX_PATH]; // database profile path (read at startup only)
wchar_t basedir[MAX_PATH];
CMPlugin g_plugin;
MWindowList hAvatarWindowsList = nullptr;
@@ -225,7 +224,7 @@ static int PreShutdown(WPARAM, LPARAM)
static int ModulesLoaded(WPARAM, LPARAM)
{
- mir_snwprintf(basedir, L"%s\\Avatars History", profilePath);
+ wcsncpy_s(basedir, VARSW(MIRANDA_USERDATAW L"\\Avatars History"), _TRUNCATE);
hFolder = FoldersRegisterCustomPathW(LPGEN("Avatars"), LPGEN("Avatar History"),
PROFILE_PATHW L"\\" CURRENT_PROFILEW L"\\Avatars History");
@@ -325,8 +324,6 @@ int CMPlugin::Load()
CreateServiceFunction(MS_AVATARHISTORY_ENABLED, IsEnabled);
CreateServiceFunction(MS_AVATARHISTORY_GET_CACHED_AVATAR, GetCachedAvatar);
- Profile_GetPathW(MAX_PATH, profilePath);
-
g_plugin.addSound("avatar_changed", LPGENW("Avatar history"), LPGENW("Contact changed avatar"));
g_plugin.addSound("avatar_removed", LPGENW("Avatar history"), LPGENW("Contact removed avatar"));