diff options
author | George Hazan <george.hazan@gmail.com> | 2012-08-01 21:39:49 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-08-01 21:39:49 +0000 |
commit | 2e4b5102fcddbe57e76f06c5704a948d14028e36 (patch) | |
tree | 68130297c6580a92979a48d8acda56c0c91e59e3 /plugins/PackUpdater | |
parent | 59c3505527e92eb41ed9755e4958fabe52b5c13c (diff) |
fix for updating hashes of non-existent dlls
git-svn-id: http://svn.miranda-ng.org/main/trunk@1319 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PackUpdater')
-rw-r--r-- | plugins/PackUpdater/src/Utils.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/PackUpdater/src/Utils.cpp b/plugins/PackUpdater/src/Utils.cpp index b3a177b41c..4746137c1f 100644 --- a/plugins/PackUpdater/src/Utils.cpp +++ b/plugins/PackUpdater/src/Utils.cpp @@ -225,6 +225,11 @@ static void ScanFolder(const TCHAR* tszFolder, const TCHAR* tszBaseUrl, hashMap& if ( IsPluginDisabled(szFileName)) //check if plugin disabled
continue;
+ // Read version info
+ hashMap::iterator boo = hashes.find(szFileName);
+ if (boo == hashes.end())
+ continue;
+
TCHAR *plugname = ffd.cFileName;
FILEINFO FileInfo = { 0 };
DBVARIANT dbv;
@@ -240,11 +245,6 @@ static void ScanFolder(const TCHAR* tszFolder, const TCHAR* tszBaseUrl, hashMap& DBWriteContactSettingString(NULL, MODNAME, szFileName, FileInfo.curhash);
}
- // Read version info
- hashMap::iterator boo = hashes.find(szFileName);
- if (boo == hashes.end())
- continue;
-
strncpy(FileInfo.newhash, boo->second.c_str(), SIZEOF(FileInfo.newhash));
// Compare versions
|