From eb9c3053eb919108153582909ab80e3b42462994 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 4 Aug 2012 20:03:59 +0000 Subject: no need to parse the profile's folder git-svn-id: http://svn.miranda-ng.org/main/trunk@1359 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/PluginUpdater/src/Scanner.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'plugins/PluginUpdater/src/Scanner.cpp') diff --git a/plugins/PluginUpdater/src/Scanner.cpp b/plugins/PluginUpdater/src/Scanner.cpp index df41165420..9aea8b20a0 100644 --- a/plugins/PluginUpdater/src/Scanner.cpp +++ b/plugins/PluginUpdater/src/Scanner.cpp @@ -48,10 +48,12 @@ static void ScanFolder(const TCHAR* tszFolder, const TCHAR* tszBaseUrl, hashMap& return; do { - if ( !_tcscmp(ffd.cFileName, _T(".")) || !_tcscmp(ffd.cFileName, _T(".."))) - continue; - if (ffd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) { + if ( !_tcscmp(ffd.cFileName, _T(".")) || !_tcscmp(ffd.cFileName, _T(".."))) + continue; + if ( !_tcsicmp(ffd.cFileName, _T("Profiles"))) + continue; + mir_sntprintf(tszMask, SIZEOF(tszMask), _T("%s\\%s"), tszFolder, ffd.cFileName); ScanFolder(tszMask, tszBaseUrl, hashes, UpdateFiles); continue; -- cgit v1.2.3