From c1881274c8c431014368f4f5b9b49397e6c579f0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 3 Jun 2019 14:02:02 +0300 Subject: Folders: old TCHAR helpers removed --- plugins/AVS/src/main.cpp | 4 ++-- plugins/AVS/src/services.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/AVS/src') diff --git a/plugins/AVS/src/main.cpp b/plugins/AVS/src/main.cpp index 0b75bd4473..805cba9aff 100644 --- a/plugins/AVS/src/main.cpp +++ b/plugins/AVS/src/main.cpp @@ -323,8 +323,8 @@ static int ModulesLoaded(WPARAM, LPARAM) SetThreadPriority(mir_forkthread(PicLoader), THREAD_PRIORITY_IDLE); // Folders plugin support - hMyAvatarsFolder = FoldersRegisterCustomPathT(LPGEN("Avatars"), LPGEN("My Avatars"), MIRANDA_USERDATAT L"\\Avatars"); - hGlobalAvatarFolder = FoldersRegisterCustomPathT(LPGEN("Avatars"), LPGEN("My Global Avatar Cache"), MIRANDA_USERDATAT L"\\Avatars"); + hMyAvatarsFolder = FoldersRegisterCustomPathW(LPGEN("Avatars"), LPGEN("My Avatars"), MIRANDA_USERDATAW L"\\Avatars"); + hGlobalAvatarFolder = FoldersRegisterCustomPathW(LPGEN("Avatars"), LPGEN("My Global Avatar Cache"), MIRANDA_USERDATAW L"\\Avatars"); g_AvatarHistoryAvail = ServiceExists(MS_AVATARHISTORY_ENABLED); diff --git a/plugins/AVS/src/services.cpp b/plugins/AVS/src/services.cpp index 729314083c..6498536305 100644 --- a/plugins/AVS/src/services.cpp +++ b/plugins/AVS/src/services.cpp @@ -526,7 +526,7 @@ static int InternalSetMyAvatar(char *protocol, wchar_t *szFinalName, SetMyAvatar // Copy avatar file to store as global one wchar_t globalFile[1024]; BOOL saved = TRUE; - if (FoldersGetCustomPathT(hGlobalAvatarFolder, globalFile, _countof(globalFile), L"")) { + if (FoldersGetCustomPathW(hGlobalAvatarFolder, globalFile, _countof(globalFile), L"")) { mir_snwprintf(globalFile, L"%s%s", g_szDataPath, L"GlobalAvatar"); CreateDirectory(globalFile, nullptr); } @@ -632,7 +632,7 @@ INT_PTR SetMyAvatar(WPARAM wParam, LPARAM lParam) FilterGetStrings(filter, allAcceptXML, allAcceptSWF); wchar_t inipath[1024]; - FoldersGetCustomPathT(hMyAvatarsFolder, inipath, _countof(inipath), L"."); + FoldersGetCustomPathW(hMyAvatarsFolder, inipath, _countof(inipath), L"."); OPENFILENAME ofn = { 0 }; ofn.lStructSize = sizeof(ofn); -- cgit v1.2.3