diff options
author | George Hazan <george.hazan@gmail.com> | 2014-08-18 14:02:52 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-08-18 14:02:52 +0000 |
commit | 3acd84bf6889f8fe2086eda619a0175d88e05a56 (patch) | |
tree | 556729468b0b75d73729528fd94f049cd216cd09 /protocols/GTalkExt | |
parent | abf173b5523410a3654c710f96bb0966982efd43 (diff) |
CRITICAL_SECTION removed from GTalk
git-svn-id: http://svn.miranda-ng.org/main/trunk@10228 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/GTalkExt')
-rw-r--r-- | protocols/GTalkExt/src/avatar.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
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;
|