diff options
author | George Hazan <george.hazan@gmail.com> | 2014-04-03 06:48:23 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-04-03 06:48:23 +0000 |
commit | a5b7f6edac87d6caedb83e0fa34a3dacda28a175 (patch) | |
tree | e394775e95f8db00b578b6a238291584fb59db69 | |
parent | ed7e7ac58e37b7d51e84fb832efec9d70e18eb5e (diff) |
array of window handles became unsorted
git-svn-id: http://svn.miranda-ng.org/main/trunk@8838 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | src/modules/metacontacts/meta_services.cpp | 6 |
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;
}
|