summaryrefslogtreecommitdiff
path: root/plugins/HistorySweeperLight
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-06-29 18:16:23 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-06-29 18:16:23 +0000
commitde5dce707cc60ace5b92d2ac61914c590cb9680b (patch)
tree64f2ee6639edeefcc9a32425d10cd56463dab6a4 /plugins/HistorySweeperLight
parent13952bddf4931ed75338460754860a81d3710678 (diff)
rest of unused databases services removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@5181 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/HistorySweeperLight')
-rw-r--r--plugins/HistorySweeperLight/src/historysweeperlight.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/plugins/HistorySweeperLight/src/historysweeperlight.cpp b/plugins/HistorySweeperLight/src/historysweeperlight.cpp
index 2adbec5872..d39293a87a 100644
--- a/plugins/HistorySweeperLight/src/historysweeperlight.cpp
+++ b/plugins/HistorySweeperLight/src/historysweeperlight.cpp
@@ -95,16 +95,11 @@ static int CompareBookmarks( const void* p1, const void* p2 )
static void GetBookmarks(HANDLE hContact, BEventData** books, size_t* bookcnt )
{
- DBVARIANT dbv;
- DBCONTACTGETSETTING cgs;
-
*books = NULL;
*bookcnt = 0;
- cgs.szModule = "HistoryPlusPlus";
- cgs.szSetting = "Bookmarks";
- cgs.pValue = &dbv;
- if (CallService(MS_DB_CONTACT_GETSETTING, (WPARAM)hContact, (LPARAM)&cgs) == 0)
+ DBVARIANT dbv;
+ if (db_get(hContact, "HistoryPlusPlus", "Bookmarks", &dbv) == 0)
{
if (dbv.cpbVal > 2 && *(WORD*)dbv.pbVal >= sizeof(BEventData))
{