diff options
author | George Hazan <george.hazan@gmail.com> | 2014-12-11 11:44:22 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-12-11 11:44:22 +0000 |
commit | fb119e1bdee2a9f53705144f7dcbc77f8525cfb4 (patch) | |
tree | 80cdeedb56be6301e6a9d268ba1a74dd0173a47b /plugins/Clist_nicer/src | |
parent | 6a745cf84d5f64a85672b56e5191bb3008dc5778 (diff) |
crash fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@11325 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_nicer/src')
-rw-r--r-- | plugins/Clist_nicer/src/cluiservices.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Clist_nicer/src/cluiservices.cpp b/plugins/Clist_nicer/src/cluiservices.cpp index 975b885b98..0e00590c7d 100644 --- a/plugins/Clist_nicer/src/cluiservices.cpp +++ b/plugins/Clist_nicer/src/cluiservices.cpp @@ -119,7 +119,8 @@ void CluiProtocolStatusChanged(int parStatus, const char* szProto) HFONT hofont = reinterpret_cast<HFONT>(SelectObject(hdc, (HFONT)SendMessage(pcli->hwndStatus, WM_GETFONT, 0, 0)));
// count down since built in ones tend to go at the end
- for (int i = 0, partCount = 0; i < protoCount; i++) {
+ partCount = 0;
+ for (int i = 0; i < protoCount; i++) {
int idx = pcli->pfnGetAccountIndexByPos(i);
if (idx == -1)
continue;
|