From 0225e25a20995f5b091c31ea1ea91306bfc8e23c Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Thu, 14 May 2015 19:07:52 +0000 Subject: cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@13595 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Popup/src/skin.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/Popup/src/skin.cpp') 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; -- cgit v1.2.3