diff options
author | George Hazan <george.hazan@gmail.com> | 2013-03-01 21:11:59 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-03-01 21:11:59 +0000 |
commit | b2269a81668efaf157d541f2ffd67e52b89417c6 (patch) | |
tree | 128980a09b93abf48f63ee78bb51a041b607e8a2 /plugins/NewsAggregator | |
parent | be6c3121411e55055383900f45d17a1ef887ccdd (diff) |
useless Folders support checks removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@3824 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewsAggregator')
-rw-r--r-- | plugins/NewsAggregator/Src/Services.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/plugins/NewsAggregator/Src/Services.cpp b/plugins/NewsAggregator/Src/Services.cpp index c302abdff2..e742cdb803 100644 --- a/plugins/NewsAggregator/Src/Services.cpp +++ b/plugins/NewsAggregator/Src/Services.cpp @@ -51,17 +51,11 @@ int OnFoldersChanged(WPARAM, LPARAM) int NewsAggrInit(WPARAM wParam, LPARAM lParam)
{
- if (ServiceExists(MS_FOLDERS_REGISTER_PATH))
- {
- hNewsAggregatorFolder = FoldersRegisterCustomPathT("News Aggregator", "Avatars", MIRANDA_USERDATAT _T("\\Avatars\\")_T(DEFAULT_AVATARS_FOLDER));
+ hNewsAggregatorFolder = FoldersRegisterCustomPathT("News Aggregator", "Avatars", MIRANDA_USERDATAT _T("\\Avatars\\")_T(DEFAULT_AVATARS_FOLDER));
+ if (hNewsAggregatorFolder)
FoldersGetCustomPathT(hNewsAggregatorFolder, tszRoot, MAX_PATH, _T(""));
- }
else
- {
- TCHAR* tszFolder = Utils_ReplaceVarsT(_T("%miranda_userdata%\\"_T(DEFAULT_AVATARS_FOLDER)));
- lstrcpyn(tszRoot, tszFolder, SIZEOF(tszRoot));
- mir_free(tszFolder);
- }
+ lstrcpyn(tszRoot, VARST( _T("%miranda_userdata%\\"_T(DEFAULT_AVATARS_FOLDER))), SIZEOF(tszRoot));
HANDLE hContact = db_find_first();
while (hContact != NULL)
|