summaryrefslogtreecommitdiff
path: root/protocols/GTalkExt/src/avatar.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-06-04 21:30:30 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-06-04 21:30:30 +0000
commit7de513f180c429859e246d1033d745b394e1fc28 (patch)
tree2072d382f58ab05ef5a2406d5df866d942689c67 /protocols/GTalkExt/src/avatar.cpp
parent625d0a8916327ffe942fc8683291c6355e814963 (diff)
fix for a buffer overrun in GTalk
git-svn-id: http://svn.miranda-ng.org/main/trunk@14001 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/GTalkExt/src/avatar.cpp')
-rw-r--r--protocols/GTalkExt/src/avatar.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/protocols/GTalkExt/src/avatar.cpp b/protocols/GTalkExt/src/avatar.cpp
index 8af3953e98..47d760cf70 100644
--- a/protocols/GTalkExt/src/avatar.cpp
+++ b/protocols/GTalkExt/src/avatar.cpp
@@ -127,13 +127,12 @@ BOOL InitAvaUnit(BOOL init)
hAvaChanged = HookEvent(ME_AV_AVATARCHANGED, AvaChanged);
return hAvaChanged != 0;
}
- else {
- if (hAvaChanged) {
- UnhookEvent(hAvaChanged);
- hAvaChanged = 0;
- }
- return TRUE;
+
+ if (hAvaChanged) {
+ UnhookEvent(hAvaChanged);
+ hAvaChanged = 0;
}
+ return TRUE;
}
void SetAvatar(MCONTACT hContact)