summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src/modern_statusbar.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-04-06 15:06:36 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-04-06 15:06:36 +0000
commit802101bbe028273db5a07017e1e5c3ed99c5bfa4 (patch)
treecb26b55a0350db4a2942a199cd3b14566a99d057 /plugins/Clist_modern/src/modern_statusbar.cpp
parent19c9aa7db13dc078b7aeee689a7bee708a455432 (diff)
Clist modern: Minor cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@12632 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src/modern_statusbar.cpp')
-rw-r--r--plugins/Clist_modern/src/modern_statusbar.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Clist_modern/src/modern_statusbar.cpp b/plugins/Clist_modern/src/modern_statusbar.cpp
index dea40a5ba3..365b594c0a 100644
--- a/plugins/Clist_modern/src/modern_statusbar.cpp
+++ b/plugins/Clist_modern/src/modern_statusbar.cpp
@@ -399,7 +399,7 @@ int ModernDrawStatusBarWorker(HWND hWnd, HDC hDC)
p.fullWidth = w;
if (g_StatusBarData.sameWidth) {
ProtoWidth[i] = sw;
- SumWidth += w;
+ SumWidth += sw;
}
else {
ProtoWidth[i] = w;
@@ -854,7 +854,7 @@ LRESULT CALLBACK ModernStatusProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPa
bool first = true;
for (int pos = 0; pos < protoCount; pos++) {
int i = pcli->pfnGetAccountIndexByPos(pos);
- if (i < 0 && i >= protoCount)
+ if (i < 0 || i >= protoCount)
continue;
char protoF[sizeof(g_CluiData.protoFilter)];