From a5b7f6edac87d6caedb83e0fa34a3dacda28a175 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 3 Apr 2014 06:48:23 +0000 Subject: array of window handles became unsorted git-svn-id: http://svn.miranda-ng.org/main/trunk@8838 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/metacontacts/meta_services.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/modules/metacontacts/meta_services.cpp b/src/modules/metacontacts/meta_services.cpp index b0567ebbfd..7a1fb8ad6e 100644 --- a/src/modules/metacontacts/meta_services.cpp +++ b/src/modules/metacontacts/meta_services.cpp @@ -40,7 +40,7 @@ HANDLE UINT_PTR setStatusTimerId = 0; BOOL firstSetOnline = TRUE; // see Meta_SetStatus function -LIST arMetaWindows(1, HandleKeySortT); +LIST arMetaWindows(1); /** Get the capabilities of the "MetaContacts" protocol. * @@ -555,7 +555,9 @@ int Meta_MessageWindowEvent(WPARAM wParam, LPARAM lParam) } } else if (mwed->uType == MSG_WINDOW_EVT_CLOSING) { - arMetaWindows.remove(mwed->hwndWindow); + for (int i = 0; i < arMetaWindows.getCount(); i++) + if (arMetaWindows[i] == mwed->hwndWindow) + arMetaWindows.remove(i); } return 0; } -- cgit v1.2.3