From 44525f461757fc859616fda16820351b07238842 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 27 Jun 2019 21:23:35 +0300 Subject: manual access to CList/Group restricted --- plugins/QuickContacts/src/dialog.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'plugins/QuickContacts/src') diff --git a/plugins/QuickContacts/src/dialog.cpp b/plugins/QuickContacts/src/dialog.cpp index c0f386018a..36e198c813 100644 --- a/plugins/QuickContacts/src/dialog.cpp +++ b/plugins/QuickContacts/src/dialog.cpp @@ -190,13 +190,9 @@ void LoadContacts(HWND hwndDlg, BOOL show_all) c_struct *contact = new c_struct(); if (opts.group_append) { - DBVARIANT dbv; - if (db_get_ws(hMeta == NULL ? hContact : hMeta, "CList", "Group", &dbv) == 0) { - if (dbv.pwszVal != nullptr) - mir_wstrncpy(contact->szgroup, dbv.pwszVal, _countof(contact->szgroup)); - - db_free(&dbv); - } + ptrW wszGroup(Clist_GetGroup(hMeta == NULL ? hContact : hMeta)); + if (wszGroup) + wcsncpy_s(contact->szgroup, wszGroup, _TRUNCATE); } // Make contact name -- cgit v1.2.3