diff options
author | George Hazan <george.hazan@gmail.com> | 2013-04-06 18:13:25 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-04-06 18:13:25 +0000 |
commit | 118997e456852a1e20ef3146298a87409cdbd85a (patch) | |
tree | 6512fb22c584aa143a28a197b52b74f07242cac0 /plugins/TabSRMM | |
parent | 7910384bebfa6debcf57086bbd9770cda51fc4f6 (diff) |
correct variant of the TabSRMM skin path's patch
git-svn-id: http://svn.miranda-ng.org/main/trunk@4344 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r-- | plugins/TabSRMM/src/mim.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/plugins/TabSRMM/src/mim.cpp b/plugins/TabSRMM/src/mim.cpp index 8eec49f5de..74241bd7fd 100644 --- a/plugins/TabSRMM/src/mim.cpp +++ b/plugins/TabSRMM/src/mim.cpp @@ -392,15 +392,13 @@ void CMimAPI::InitPaths() const TCHAR *szUserdataDir = getUserDir();
mir_sntprintf(m_szProfilePath, MAX_PATH, _T("%stabSRMM"), szUserdataDir);
- if (ServiceExists(MS_FOLDERS_REGISTER_PATH))
- {
- mir_sntprintf(m_szChatLogsPath, MAX_PATH, _T("%%miranda_logpath%%"));
- mir_sntprintf(m_szSkinsPath, MAX_PATH, _T("%%miranda_path%%\\Skins\\TabSRMM"));
+ if (ServiceExists(MS_FOLDERS_REGISTER_PATH)) {
+ lstrcpyn(m_szChatLogsPath, _T("%miranda_logpath%"), MAX_PATH);
+ lstrcpyn(m_szSkinsPath, _T("%miranda_path%\\Skins\\TabSRMM"), MAX_PATH);
}
- else
- {
- mir_sntprintf(m_szChatLogsPath, MAX_PATH, VARST(_T("%%miranda_logpath%%")));
- mir_sntprintf(m_szSkinsPath, MAX_PATH, VARST(_T("%miranda_path%\\Skins\\TabSRMM")));
+ else {
+ lstrcpyn(m_szChatLogsPath, VARST(_T("%miranda_logpath%")), MAX_PATH);
+ lstrcpyn(m_szSkinsPath, VARST(_T("%miranda_path%\\Skins\\TabSRMM")), MAX_PATH);
}
mir_sntprintf(m_szSavedAvatarsPath, MAX_PATH, _T("%s\\Saved Contact Pictures"), m_szProfilePath);
}
|