summaryrefslogtreecommitdiff
path: root/protocols/SkypeClassic/src/gchat.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-01-10 14:35:33 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-01-10 14:35:33 +0000
commitdc0661ecf229f34b766a90a0a989fff0290878ab (patch)
tree556339afc7e00908195882357c640920018db95d /protocols/SkypeClassic/src/gchat.cpp
parent5ebc752cd3731e2de4140eff3e6fca0e5d82fcf4 (diff)
SkypeClassic:
- Fixed bug from r11805 - workaround for LPGEN git-svn-id: http://svn.miranda-ng.org/main/trunk@11818 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeClassic/src/gchat.cpp')
-rw-r--r--protocols/SkypeClassic/src/gchat.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/protocols/SkypeClassic/src/gchat.cpp b/protocols/SkypeClassic/src/gchat.cpp
index c89f79b4e2..e40b417331 100644
--- a/protocols/SkypeClassic/src/gchat.cpp
+++ b/protocols/SkypeClassic/src/gchat.cpp
@@ -150,10 +150,9 @@ static int AddChatContact(gchat_contacts *gc, char *who, TCHAR *pszRole)
}
void RemChatContact(gchat_contacts *gc, const TCHAR *who) {
- int i;
-
- if (!gc) return;
- for (i=0;i<gc->mJoinedCount;i++)
+ if (!gc)
+ return;
+ for (int i=0;i<gc->mJoinedCount;i++)
if (_tcscmp(gc->mJoinedContacts[i].who, who)==0) {
if (i<--gc->mJoinedCount)
memmove(&gc->mJoinedContacts[i], &gc->mJoinedContacts[i+1], (gc->mJoinedCount-i)*sizeof(gchat_contact));