summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/PackUpdater/src/Utils.cpp10
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