summaryrefslogtreecommitdiff
path: root/plugins/PluginUpdater/src/Scanner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/PluginUpdater/src/Scanner.cpp')
-rw-r--r--plugins/PluginUpdater/src/Scanner.cpp15
1 files changed, 3 insertions, 12 deletions
diff --git a/plugins/PluginUpdater/src/Scanner.cpp b/plugins/PluginUpdater/src/Scanner.cpp
index fd6a035174..9edd0b69d5 100644
--- a/plugins/PluginUpdater/src/Scanner.cpp
+++ b/plugins/PluginUpdater/src/Scanner.cpp
@@ -77,18 +77,9 @@ static void ScanFolder(const TCHAR* tszFolder, const TCHAR* tszBaseUrl, hashMap&
TCHAR *plugname = ffd.cFileName;
FILEINFO FileInfo = { 0 };
- DBVARIANT dbv;
- if ( !DBGetContactSettingString(NULL, MODNAME, szFileName, &dbv)) {
- //считать хэш файла
- lstrcpynA(FileInfo.curhash, dbv.pszVal, SIZEOF(FileInfo.curhash));
- _strlwr(FileInfo.curhash);
- DBFreeVariant(&dbv);
- }
- else {
- mir_sntprintf(tszMask, SIZEOF(tszMask), _T("%s\\%s"), tszFolder, ffd.cFileName);
- CalculateModuleHash(tszMask, FileInfo.curhash);
- DBWriteContactSettingString(NULL, MODNAME, szFileName, FileInfo.curhash);
- }
+
+ mir_sntprintf(tszMask, SIZEOF(tszMask), _T("%s\\%s"), tszFolder, ffd.cFileName);
+ CalculateModuleHash(tszMask, FileInfo.curhash);
strncpy(FileInfo.newhash, boo->second.c_str(), SIZEOF(FileInfo.newhash));