summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-04-03 06:48:23 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-04-03 06:48:23 +0000
commita5b7f6edac87d6caedb83e0fa34a3dacda28a175 (patch)
treee394775e95f8db00b578b6a238291584fb59db69 /src/modules
parented7e7ac58e37b7d51e84fb832efec9d70e18eb5e (diff)
array of window handles became unsorted
git-svn-id: http://svn.miranda-ng.org/main/trunk@8838 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/metacontacts/meta_services.cpp6
1 files changed, 4 insertions, 2 deletions
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<void> arMetaWindows(1, HandleKeySortT);
+LIST<void> 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;
}