From f882faaa10cb09acb9c7889d64fa9083e2eb1437 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 25 Dec 2023 16:22:20 +0300 Subject: we need m_hContact to call PSS_GETINFO --- src/core/stduserinfo/src/userinfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/core/stduserinfo/src/userinfo.cpp b/src/core/stduserinfo/src/userinfo.cpp index 7e3793af1c..457cd949a5 100644 --- a/src/core/stduserinfo/src/userinfo.cpp +++ b/src/core/stduserinfo/src/userinfo.cpp @@ -555,8 +555,8 @@ public: m_infosUpdated = NULL; } - if (const char *szProto = GetProto()) - if (!CallProtoService(szProto, PSS_GETINFO, 0, 0)) { + if (m_hContact != NULL) + if (!ProtoChainSend(m_hContact, PSS_GETINFO, 0, 0)) { btnUpdate.Disable(); ShowWindow(GetDlgItem(m_hwnd, IDC_UPDATING), SW_SHOW); updateTimer.Start(100); -- cgit v1.2.3