From 5a20e63269ffb3904a130a327af66f271e738313 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 5 Aug 2012 17:02:59 +0000 Subject: - added 'State' column to the Apply Updates dialog - states aren't stored in the db anymore git-svn-id: http://svn.miranda-ng.org/main/trunk@1364 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/PluginUpdater/src/Scanner.cpp | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'plugins/PluginUpdater/src/Scanner.cpp') 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)); -- cgit v1.2.3