summaryrefslogtreecommitdiff
path: root/src/modules/extraicons/options_ei.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/extraicons/options_ei.cpp')
-rw-r--r--src/modules/extraicons/options_ei.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/modules/extraicons/options_ei.cpp b/src/modules/extraicons/options_ei.cpp
index 99d5f8c91d..48a763dc83 100644
--- a/src/modules/extraicons/options_ei.cpp
+++ b/src/modules/extraicons/options_ei.cpp
@@ -56,11 +56,8 @@ BOOL ScreenToClient(HWND hWnd, LPRECT lpRect)
static void RemoveExtraIcons(int slot)
{
- HANDLE hContact = db_find_first();
- while (hContact != NULL) {
+ for (HANDLE hContact = db_find_first(); hContact; hContact = db_find_next(hContact))
Clist_SetExtraIcon(hContact, slot, INVALID_HANDLE_VALUE);
- hContact = db_find_next(hContact);
- }
}
#ifndef TVIS_FOCUSED