diff options
author | George Hazan <george.hazan@gmail.com> | 2012-08-04 20:03:59 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-08-04 20:03:59 +0000 |
commit | eb9c3053eb919108153582909ab80e3b42462994 (patch) | |
tree | bcaa4413dc4a53eccf7d82a64568f745c621896e | |
parent | fb291835ca840fb0bbee98b1554618442ff26289 (diff) |
no need to parse the profile's folder
git-svn-id: http://svn.miranda-ng.org/main/trunk@1359 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/PluginUpdater/src/Scanner.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
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;
|