From 5f4dfea172962d33442546739976edf7023a1a7c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 11 Aug 2013 13:53:04 +0000 Subject: attempt to discover the crash place in chats git-svn-id: http://svn.miranda-ng.org/main/trunk@5651 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/chat/manager.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'plugins/TabSRMM/src/chat/manager.cpp') diff --git a/plugins/TabSRMM/src/chat/manager.cpp b/plugins/TabSRMM/src/chat/manager.cpp index 986cabdc47..fcb5daf808 100644 --- a/plugins/TabSRMM/src/chat/manager.cpp +++ b/plugins/TabSRMM/src/chat/manager.cpp @@ -352,12 +352,11 @@ BOOL SM_RemoveUser(const TCHAR* pszID, const char* pszModule, const TCHAR* pszUI for (SESSION_INFO *si = s_WndList; si; si = si->next) { if ((!pszID || !lstrcmpi(si->ptszID, pszID)) && !lstrcmpiA(si->pszModule, pszModule)) { - DWORD dw; USERINFO *ui = UM_FindUser(si->pUsers, pszUID); if (ui) { si->nUsersInNicklist--; - dw = UM_RemoveUser(&si->pUsers, pszUID); + UM_RemoveUser(&si->pUsers, pszUID); if (si->hWnd) SendMessage(si->hWnd, GC_UPDATENICKLIST, 0, 0); @@ -507,12 +506,11 @@ BOOL SM_ReconfigureFilters() BOOL SM_InvalidateLogDirectories() { - EnterCriticalSection(&cs); + mir_cslock lck(cs); for (SESSION_INFO *si = s_WndList; si; si = si->next) - si->pszLogFileName[0] = 0; + si->pszLogFileName[0] = si->pszLogFileName[1] = 0; - LeaveCriticalSection(&cs); return TRUE; } -- cgit v1.2.3