summaryrefslogtreecommitdiff
path: root/plugins/QuickContacts/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-06-27 21:23:35 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-06-27 21:23:35 +0300
commit44525f461757fc859616fda16820351b07238842 (patch)
tree117ad05514eed381fc13dcf8befcf0ff06023e57 /plugins/QuickContacts/src
parent810ed4dea67b54a18f6ec3f5273d2f8efe08708c (diff)
manual access to CList/Group restricted
Diffstat (limited to 'plugins/QuickContacts/src')
-rw-r--r--plugins/QuickContacts/src/dialog.cpp10
1 files changed, 3 insertions, 7 deletions
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