From 3acd84bf6889f8fe2086eda619a0175d88e05a56 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 18 Aug 2014 14:02:52 +0000 Subject: CRITICAL_SECTION removed from GTalk git-svn-id: http://svn.miranda-ng.org/main/trunk@10228 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/GTalkExt/src/avatar.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'protocols/GTalkExt') diff --git a/protocols/GTalkExt/src/avatar.cpp b/protocols/GTalkExt/src/avatar.cpp index 5b464b1ae3..574d865cac 100644 --- a/protocols/GTalkExt/src/avatar.cpp +++ b/protocols/GTalkExt/src/avatar.cpp @@ -121,23 +121,16 @@ int AvaChanged(WPARAM hContact, LPARAM lParam) return 0; } -CRITICAL_SECTION g_csSetAvatar; +mir_cs g_csSetAvatar; HANDLE hAvaChanged = 0; -BOOL initialized = FALSE; BOOL InitAvaUnit(BOOL init) { if (init) { hAvaChanged = HookEvent(ME_AV_AVATARCHANGED, AvaChanged); - InitializeCriticalSection(&g_csSetAvatar); - initialized = TRUE; return hAvaChanged != 0; } else { - if (initialized) { - initialized = FALSE; - DeleteCriticalSection(&g_csSetAvatar); - } if (hAvaChanged) { UnhookEvent(hAvaChanged); hAvaChanged = 0; -- cgit v1.2.3