diff options
-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;
}
}
|