summaryrefslogtreecommitdiff
path: root/src/modules/skin
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-04-16 14:03:24 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-04-16 14:03:24 +0000
commit8bd2456f654ef5eea44fcf4ad6ce5f7107f7d829 (patch)
tree8ae03049734c96a5feba398f5c142d9a4213d640 /src/modules/skin
parentc3908b9c6d53a6aef5e25975d3b336974e6dd610 (diff)
IsStatusConnecting() - useful macro
git-svn-id: http://svn.miranda-ng.org/main/trunk@12860 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/skin')
-rw-r--r--src/modules/skin/skinicons.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/skin/skinicons.cpp b/src/modules/skin/skinicons.cpp
index 048322bc49..d7c2884f14 100644
--- a/src/modules/skin/skinicons.cpp
+++ b/src/modules/skin/skinicons.cpp
@@ -233,7 +233,7 @@ HICON LoadSkinProtoIcon(const char *szProto, int status, bool big)
else if ((caps2 = CallProtoServiceInt(NULL,szProto, PS_GETCAPS, PFLAGNUM_2, 0)) == CALLSERVICE_NOTFOUND)
caps2 = 0;
- if (status >= ID_STATUS_CONNECTING && status < ID_STATUS_CONNECTING+MAX_CONNECT_RETRIES) {
+ if (IsStatusConnecting(status)) {
mir_snprintf(iconName, SIZEOF(iconName), "%s%d", mainIconsFmt, 7);
return IcoLib_GetIcon(iconName, big);
}