From e71ae69a68419f5e42ceb93234f7c470a54ed804 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 19 Dec 2013 21:16:14 +0000 Subject: minor contacts processing improvements git-svn-id: http://svn.miranda-ng.org/main/trunk@7291 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ContactsPlus/src/send.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'plugins/ContactsPlus') diff --git a/plugins/ContactsPlus/src/send.cpp b/plugins/ContactsPlus/src/send.cpp index d391edb177..beefc0aedf 100644 --- a/plugins/ContactsPlus/src/send.cpp +++ b/plugins/ContactsPlus/src/send.cpp @@ -347,12 +347,11 @@ INT_PTR CALLBACK SendDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPara HWND hList = GetDlgItem(hwndDlg, IDC_LIST); hContact = FindFirstClistContact(hList, &hItem); - while (hContact) - { + while (hContact) { + // build list of contacts to send if (SendMessage(hList, CLM_GETCHECKMARK, (WPARAM)hItem, 0)) - { // build list of contacts to send wndData->AddContact(hContact); - } + hContact = FindNextClistContact(hList, hContact, &hItem); } /* send contacts */ -- cgit v1.2.3