summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/mim.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TabSRMM/src/mim.cpp')
-rw-r--r--plugins/TabSRMM/src/mim.cpp9
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);
}