diff options
author | George Hazan <george.hazan@gmail.com> | 2013-09-17 19:35:59 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-09-17 19:35:59 +0000 |
commit | bcf4c54d33c7f735ce325dd8183afc0f1a2d0493 (patch) | |
tree | 250e69a0acbfb0c0e20ef7dba2528c7e85008e84 | |
parent | 76cc3aa252522f1b897f5a968afd7b5f9943d4df (diff) |
fix against crashing on dynamic load/unload
git-svn-id: http://svn.miranda-ng.org/main/trunk@6116 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/FloatingContacts/src/main.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/FloatingContacts/src/main.cpp b/plugins/FloatingContacts/src/main.cpp index d9a74482eb..37b7da459a 100644 --- a/plugins/FloatingContacts/src/main.cpp +++ b/plugins/FloatingContacts/src/main.cpp @@ -376,6 +376,10 @@ static LRESULT __stdcall CommWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM }
break;
+ case WM_CLOSE:
+ DestroyWindow(hwnd);
+ break;
+
case WM_NCPAINT:
if (pThumb){
HDC hdc = GetWindowDC( hwnd );
@@ -948,7 +952,7 @@ static int OnModulesLoded(WPARAM wParam, LPARAM lParam) static int OnPreshutdown(WPARAM, LPARAM)
{
- WindowList_Broadcast(hwndList, WM_DESTROY, 0, 0);
+ WindowList_Broadcast(hwndList, WM_CLOSE, 0, 0);
return 0;
}
|