diff options
Diffstat (limited to 'src/core/stdmsg/src/statusicon.cpp')
-rw-r--r-- | src/core/stdmsg/src/statusicon.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/stdmsg/src/statusicon.cpp b/src/core/stdmsg/src/statusicon.cpp index 4d2b0c8bf7..20932d34ea 100644 --- a/src/core/stdmsg/src/statusicon.cpp +++ b/src/core/stdmsg/src/statusicon.cpp @@ -41,8 +41,8 @@ void DrawStatusIcons(MCONTACT hContact, HDC hDC, RECT r, int gap) int x = r.left;
int nIcon = 0;
- StatusIconData *sid = Srmm_GetNthIcon(hContact, nIcon++);
- while (sid != 0 && x < r.right) {
+ StatusIconData *sid;
+ while ((sid = Srmm_GetNthIcon(hContact, nIcon++)) != 0 && x < r.right) {
HICON hIcon = ((sid->flags & MBF_DISABLED) && sid->hIconDisabled) ? sid->hIconDisabled : sid->hIcon;
SetBkMode(hDC, TRANSPARENT);
|