diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2012-06-17 15:57:56 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2012-06-17 15:57:56 +0000 |
commit | 184cfd6515bea3ffe4c61c71dfd3a65c87eb880b (patch) | |
tree | 1acf9122a0d9876a896b505f51020c1d194d830e /plugins/TabSRMM/src/mim.cpp | |
parent | 122baf7f7465e0b5b890729d65914f527db1ca26 (diff) |
cosmetic settings fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@459 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/mim.cpp')
-rw-r--r-- | plugins/TabSRMM/src/mim.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/mim.cpp b/plugins/TabSRMM/src/mim.cpp index 1e412817be..dfd38998fd 100644 --- a/plugins/TabSRMM/src/mim.cpp +++ b/plugins/TabSRMM/src/mim.cpp @@ -423,10 +423,15 @@ INT_PTR CMimAPI::foldersPathChanged() const TCHAR* CMimAPI::getUserDir()
{
if(m_userDir[0] == 0) {
- wchar_t* userdata = ::Utils_ReplaceVarsT(L"%miranda_userdata%");
+ wchar_t* userdata;
+ if (ServiceExists(MS_FOLDERS_REGISTER_PATH))
+ userdata = L"%%miranda_userdata%%";
+ else
+ userdata = ::Utils_ReplaceVarsT(L"%miranda_userdata%");
mir_sntprintf(m_userDir, MAX_PATH, userdata);
Utils::ensureTralingBackslash(m_userDir);
- mir_free(userdata);
+ if (!ServiceExists(MS_FOLDERS_REGISTER_PATH))
+ mir_free(userdata);
}
return(m_userDir);
}
|