From 003309d40b81d64860bc0ce3491deec2a1d86ce8 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 19 Jan 2014 11:26:42 +0000 Subject: StdChat to close all windows on exit git-svn-id: http://svn.miranda-ng.org/main/trunk@7750 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/core/stdchat/src/main.cpp | 3 +++ src/core/stdchat/src/manager.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src/core') diff --git a/src/core/stdchat/src/main.cpp b/src/core/stdchat/src/main.cpp index 81702484c2..d1fc7f764d 100644 --- a/src/core/stdchat/src/main.cpp +++ b/src/core/stdchat/src/main.cpp @@ -69,6 +69,9 @@ extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = {MIID_CHAT, M int OnShutdown(WPARAM, LPARAM) { + for (SESSION_INFO *si = pci->wndList; si; si = si->next) + SendMessage(si->hWnd, WM_CLOSE, 0, 0); + TabM_RemoveAll(); ImageList_Destroy(hIconsList); return 0; diff --git a/src/core/stdchat/src/manager.cpp b/src/core/stdchat/src/manager.cpp index 995011dc42..a16e6a02d8 100644 --- a/src/core/stdchat/src/manager.cpp +++ b/src/core/stdchat/src/manager.cpp @@ -103,7 +103,7 @@ BOOL TabM_AddTab(const TCHAR *pszID, const char* pszModule) BOOL TabM_RemoveAll(void) { while (g_TabList != NULL) { - TABLIST * pLast = g_TabList->next; + TABLIST *pLast = g_TabList->next; mir_free(g_TabList->pszModule); mir_free(g_TabList->pszID); mir_free(g_TabList); -- cgit v1.2.3