summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src/modern_skinopt.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-07-27 11:50:07 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-07-27 11:50:07 +0000
commitddd1af0fdf37364c9472faedad941b4cc5f1b465 (patch)
treed4eb46f481a47b6e16e40b39860e830e40f9dbcf /plugins/Clist_modern/src/modern_skinopt.cpp
parentcc3be4384048697fe9b7716c11b7bd726b9ca650 (diff)
<tchar.h> removed from <m_system.h>
git-svn-id: http://svn.miranda-ng.org/main/trunk@17136 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src/modern_skinopt.cpp')
-rw-r--r--plugins/Clist_modern/src/modern_skinopt.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/plugins/Clist_modern/src/modern_skinopt.cpp b/plugins/Clist_modern/src/modern_skinopt.cpp
index 6927134b57..1b2514e0f7 100644
--- a/plugins/Clist_modern/src/modern_skinopt.cpp
+++ b/plugins/Clist_modern/src/modern_skinopt.cpp
@@ -327,30 +327,30 @@ INT_PTR CALLBACK DlgSkinOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPara
int SearchSkinFiles(HWND hwndDlg, wchar_t * Folder)
{
- struct _tfinddata_t fd = { 0 };
+ struct _wfinddata_t fd = { 0 };
wchar_t mask[MAX_PATH];
long hFile;
mir_sntprintf(mask, L"%s\\*.msf", Folder);
//fd.attrib = _A_SUBDIR;
- hFile = _tfindfirst(mask, &fd);
+ hFile = _wfindfirst(mask, &fd);
if (hFile != -1) {
do {
AddSkinToList(hwndDlg, Folder, fd.name);
- } while (!_tfindnext(hFile, &fd));
+ } while (!_wfindnext(hFile, &fd));
_findclose(hFile);
}
mir_sntprintf(mask, L"%s\\*", Folder);
- hFile = _tfindfirst(mask, &fd);
- {
- do {
- if (fd.attrib&_A_SUBDIR && !(mir_tstrcmpi(fd.name, L".") == 0 || mir_tstrcmpi(fd.name, L"..") == 0)) {//Next level of subfolders
- wchar_t path[MAX_PATH];
- mir_sntprintf(path, L"%s\\%s", Folder, fd.name);
- SearchSkinFiles(hwndDlg, path);
- }
- } while (!_tfindnext(hFile, &fd));
- _findclose(hFile);
- }
+ hFile = _wfindfirst(mask, &fd);
+
+ do {
+ if (fd.attrib&_A_SUBDIR && !(mir_tstrcmpi(fd.name, L".") == 0 || mir_tstrcmpi(fd.name, L"..") == 0)) {//Next level of subfolders
+ wchar_t path[MAX_PATH];
+ mir_sntprintf(path, L"%s\\%s", Folder, fd.name);
+ SearchSkinFiles(hwndDlg, path);
+ }
+ } while (!_wfindnext(hFile, &fd));
+ _findclose(hFile);
+
return 0;
}