summaryrefslogtreecommitdiff
path: root/plugins/QuickContacts/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/QuickContacts/src')
-rw-r--r--plugins/QuickContacts/src/dialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/QuickContacts/src/dialog.cpp b/plugins/QuickContacts/src/dialog.cpp
index 2b2e112b07..0d6aecf812 100644
--- a/plugins/QuickContacts/src/dialog.cpp
+++ b/plugins/QuickContacts/src/dialog.cpp
@@ -192,8 +192,8 @@ void LoadContacts(HWND hwndDlg, BOOL show_all)
if (opts.group_append) {
DBVARIANT dbv;
if (db_get_ws(hMeta == NULL ? hContact : hMeta, "CList", "Group", &dbv) == 0) {
- if (dbv.ptszVal != nullptr)
- mir_wstrncpy(contact->szgroup, dbv.ptszVal, _countof(contact->szgroup));
+ if (dbv.pwszVal != nullptr)
+ mir_wstrncpy(contact->szgroup, dbv.pwszVal, _countof(contact->szgroup));
db_free(&dbv);
}