From bcf4c54d33c7f735ce325dd8183afc0f1a2d0493 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 17 Sep 2013 19:35:59 +0000 Subject: fix against crashing on dynamic load/unload git-svn-id: http://svn.miranda-ng.org/main/trunk@6116 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/FloatingContacts/src/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'plugins') 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; } -- cgit v1.2.3