diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-14 19:07:52 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-14 19:07:52 +0000 |
commit | 0225e25a20995f5b091c31ea1ea91306bfc8e23c (patch) | |
tree | aca60c03c02591f9c95a99705d127d65ee056d68 /plugins/Popup/src/skin.cpp | |
parent | 2a884a193239118e9ff76d7a29dae5a84fab1122 (diff) |
cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@13595 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Popup/src/skin.cpp')
-rw-r--r-- | plugins/Popup/src/skin.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/Popup/src/skin.cpp b/plugins/Popup/src/skin.cpp index 03ec882e3f..751370ef54 100644 --- a/plugins/Popup/src/skin.cpp +++ b/plugins/Popup/src/skin.cpp @@ -1099,13 +1099,11 @@ bool Skins::load() TCHAR dir[1024] = { '\0' };
if (ServiceExists(MS_FOLDERS_GET_PATH)) {
- if (FoldersGetCustomPathT(folderId, dir, 1024, NULL) != 0)
+ if (FoldersGetCustomPathT(folderId, dir, SIZEOF(dir), NULL) != 0)
return false;
}
else {
- GetModuleFileName(hInst, dir, 1024);
- dir[mir_tstrlen(dir) - 18] = 0;
- mir_tstrcat(dir, _T("\\skins\\popup"));
+ mir_tstrncpy(dir, VARST(_T("%miranda_path%\\skins\\popup")), SIZEOF(dir));
DWORD fa = GetFileAttributes(dir);
if ((fa == INVALID_FILE_ATTRIBUTES) || !(fa&FILE_ATTRIBUTE_DIRECTORY))
return false;
|