summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-04-03 16:56:45 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-04-03 16:56:45 +0300
commitf9883d97b3a586663f85075206fe7e07b41ed366 (patch)
tree1aa3f212a908eda296de192129df8e49cc10cb13 /plugins/UserInfoEx
parent9613f96e6a6f96ad02a0fc926054132811ae2bb1 (diff)
unneeded size fields removed
Diffstat (limited to 'plugins/UserInfoEx')
-rw-r--r--plugins/UserInfoEx/src/svc_refreshci.cpp16
1 files changed, 4 insertions, 12 deletions
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();