From e8a8773ceb8e570207cef9659c30f79d32fb93ae Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 27 Feb 2019 18:38:26 +0300 Subject: h++ => #1846 --- src/mir_app/src/contacts.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mir_app/src/contacts.cpp b/src/mir_app/src/contacts.cpp index 053b94490d..dc7af82b37 100644 --- a/src/mir_app/src/contacts.cpp +++ b/src/mir_app/src/contacts.cpp @@ -186,8 +186,9 @@ MIR_APP_DLL(wchar_t*) Contact_GetInfo(int type, MCONTACT hContact, const char *s case 0: // custom name // make sure we aren't in CNF_DISPLAYNC mode // don't get custom name for nullptr contact - if (hContact != 0 && type == CNF_DISPLAY && (res = ProcessDatabaseValueDefault(hContact, "CList", "MyHandle")) != nullptr) - return res; + if (type == CNF_DISPLAY) + if (res = ProcessDatabaseValueDefault(hContact, (hContact != 0) ? "CList" : szProto, "MyHandle")) + return res; break; case 1: -- cgit v1.2.3