diff options
author | George Hazan <ghazan@miranda.im> | 2019-06-03 14:02:02 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-06-03 14:02:02 +0300 |
commit | c1881274c8c431014368f4f5b9b49397e6c579f0 (patch) | |
tree | 35534e17812aab00ec9e63b801ccb99a4ee221e9 /src/mir_app | |
parent | 240b4b12c1ec026be8a62b7ecd1f4702736b0e1b (diff) |
Folders: old TCHAR helpers removed
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/path.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mir_app/src/path.cpp b/src/mir_app/src/path.cpp index cf6f935f07..5b14ac1a3b 100644 --- a/src/mir_app/src/path.cpp +++ b/src/mir_app/src/path.cpp @@ -367,7 +367,7 @@ static int OnFoldersChanged(WPARAM, LPARAM) mir_snwprintf(tszAvatarRoot, L"%s\\%s\\AvatarCache", g_profileDir, g_shortProfileName);
wchar_t tmpVar[MAX_PATH];
- if (!FoldersGetCustomPathT(hAvatarFolder, tmpVar, _countof(tmpVar), tszAvatarRoot))
+ if (!FoldersGetCustomPathW(hAvatarFolder, tmpVar, _countof(tmpVar), tszAvatarRoot))
wcsncpy_s(tszAvatarRoot, tmpVar, _TRUNCATE);
return 0;
}
@@ -375,9 +375,9 @@ static int OnFoldersChanged(WPARAM, LPARAM) void InitPathVar()
{
mir_snwprintf(tszAvatarRoot, L"%s\\%s\\AvatarCache", g_profileDir, g_shortProfileName);
- if (hAvatarFolder = FoldersRegisterCustomPathT( LPGEN("Avatars"), LPGEN("Avatars root folder"), tszAvatarRoot)) {
+ if (hAvatarFolder = FoldersRegisterCustomPathW(LPGEN("Avatars"), LPGEN("Avatars root folder"), tszAvatarRoot)) {
wchar_t tmpVar[MAX_PATH];
- if (!FoldersGetCustomPathT(hAvatarFolder, tmpVar, _countof(tmpVar), tszAvatarRoot))
+ if (!FoldersGetCustomPathW(hAvatarFolder, tmpVar, _countof(tmpVar), tszAvatarRoot))
wcsncpy_s(tszAvatarRoot, tmpVar, _TRUNCATE);
HookEvent(ME_FOLDERS_PATH_CHANGED, OnFoldersChanged);
}
|