From d770f3eb807b9b1c9f844a005179f93893183133 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Thu, 5 Mar 2015 19:18:03 +0000 Subject: Tox: add folders support git-svn-id: http://svn.miranda-ng.org/main/trunk@12331 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_profile.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'protocols/Tox/src/tox_profile.cpp') diff --git a/protocols/Tox/src/tox_profile.cpp b/protocols/Tox/src/tox_profile.cpp index cdfbbe5fb8..9d1d446099 100644 --- a/protocols/Tox/src/tox_profile.cpp +++ b/protocols/Tox/src/tox_profile.cpp @@ -7,11 +7,10 @@ std::tstring CToxProto::GetToxProfilePath() std::tstring CToxProto::GetToxProfilePath(const TCHAR *accountName) { - std::tstring profilePath; - TCHAR defaultPath[MAX_PATH]; - mir_sntprintf(defaultPath, MAX_PATH, _T("%s\\%s.tox"), VARST(_T("%miranda_userdata%")), accountName); - profilePath = defaultPath; - + TCHAR profilePath[MAX_PATH]; + TCHAR profileRootPath[MAX_PATH]; + FoldersGetCustomPathT(hProfileFolderPath, profileRootPath, SIZEOF(profileRootPath), VARST(_T("%miranda_userdata%"))); + mir_sntprintf(profilePath, MAX_PATH, _T("%s\\%s.tox"), profileRootPath, accountName); return profilePath; } -- cgit v1.2.3