From 6562883fef0a5dad6520892654b5924224128b0a Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Thu, 10 Jan 2013 21:38:33 +0000 Subject: Fixed "Sort alphabetically" git-svn-id: http://svn.miranda-ng.org/main/trunk@3043 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MetaContacts/src/addto.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins') diff --git a/plugins/MetaContacts/src/addto.cpp b/plugins/MetaContacts/src/addto.cpp index 3828d04d85..e6c2eb6f81 100644 --- a/plugins/MetaContacts/src/addto.cpp +++ b/plugins/MetaContacts/src/addto.cpp @@ -69,12 +69,10 @@ int FillList(HWND list, BOOL sort) int pos = -1; if (sort) { - pos = 0; - for (int j = 0; j < i; j++) { + for (pos = 0; pos < i; pos++) { TCHAR buff[1024]; - SendMessage(list, LB_GETTEXT, j, (LPARAM)buff); + SendMessage(list, LB_GETTEXT, pos, (LPARAM)buff); if ( _tcscmp(buff, swzContactDisplayName) > 0) { - pos = j; break; } } -- cgit v1.2.3