summaryrefslogtreecommitdiff
path: root/src/core/stduserinfo
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-12-25 16:22:20 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-12-25 16:22:20 +0300
commitf882faaa10cb09acb9c7889d64fa9083e2eb1437 (patch)
treed051c7597d92088ad7bc9a286de92c207741759a /src/core/stduserinfo
parentcbbd47079533e4da06f1342df071894c7fa11c10 (diff)
we need m_hContact to call PSS_GETINFO
Diffstat (limited to 'src/core/stduserinfo')
-rw-r--r--src/core/stduserinfo/src/userinfo.cpp4
1 files changed, 2 insertions, 2 deletions
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);