diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2013-01-10 21:38:33 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2013-01-10 21:38:33 +0000 |
commit | 6562883fef0a5dad6520892654b5924224128b0a (patch) | |
tree | 7c01dd58af8ae46c1d0f7547a60f132fa2a1440a /plugins/MetaContacts/src | |
parent | d5ab74fb069fe2e95879c8d9cf21602727f4cacd (diff) |
Fixed "Sort alphabetically"
git-svn-id: http://svn.miranda-ng.org/main/trunk@3043 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MetaContacts/src')
-rw-r--r-- | plugins/MetaContacts/src/addto.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
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;
}
}
|