From 2e4b5102fcddbe57e76f06c5704a948d14028e36 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 1 Aug 2012 21:39:49 +0000 Subject: fix for updating hashes of non-existent dlls git-svn-id: http://svn.miranda-ng.org/main/trunk@1319 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/PackUpdater/src/Utils.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins') 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 -- cgit v1.2.3