From f9883d97b3a586663f85075206fe7e07b41ed366 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 3 Apr 2018 16:56:45 +0300 Subject: unneeded size fields removed --- plugins/UserInfoEx/src/svc_refreshci.cpp | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'plugins/UserInfoEx') diff --git a/plugins/UserInfoEx/src/svc_refreshci.cpp b/plugins/UserInfoEx/src/svc_refreshci.cpp index 59b991cfb9..f340a300c3 100644 --- a/plugins/UserInfoEx/src/svc_refreshci.cpp +++ b/plugins/UserInfoEx/src/svc_refreshci.cpp @@ -541,27 +541,19 @@ class CContactUpdater : public CContactQueue **/ int __cdecl OnProtoAck(WPARAM, ACKDATA *ack) { - if (ack && ack->cbSize == sizeof(ACKDATA) && ack->hContact == _hContact && ack->type == ACKTYPE_GETINFO) - { - if (ack->hProcess || ack->lParam) - { - if (!_hContactAcks) - { + if (ack && ack->hContact == _hContact && ack->type == ACKTYPE_GETINFO) { + if (ack->hProcess || ack->lParam) { + if (!_hContactAcks) { _nContactAcks = (INT_PTR)ack->hProcess; _hContactAcks = (PBYTE)mir_calloc(sizeof(BYTE) * (INT_PTR)ack->hProcess); } + if (ack->result == ACKRESULT_SUCCESS || ack->result == ACKRESULT_FAILED) - { _hContactAcks[ack->lParam] = 1; - } for (int i = 0; i < _nContactAcks; i++) - { if (_hContactAcks[i] == 0) - { return 0; - } - } } // don't wait the full time, but continue immitiatly ContinueWithNext(); -- cgit v1.2.3