summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/chat/manager.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-08-11 13:53:04 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-08-11 13:53:04 +0000
commit5f4dfea172962d33442546739976edf7023a1a7c (patch)
tree92d6e1ba9c4d47122effce9e6d82508039f1fe56 /plugins/TabSRMM/src/chat/manager.cpp
parent95b2fb2835c60505cefcbbaeb9c53875b6687993 (diff)
attempt to discover the crash place in chats
git-svn-id: http://svn.miranda-ng.org/main/trunk@5651 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/chat/manager.cpp')
-rw-r--r--plugins/TabSRMM/src/chat/manager.cpp8
1 files changed, 3 insertions, 5 deletions
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;
}