diff options
author | George Hazan <george.hazan@gmail.com> | 2014-01-02 11:42:34 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-01-02 11:42:34 +0000 |
commit | 517284b80db96b58ea68d7ba974345dc5a2236bb (patch) | |
tree | 4f179d2c825378aefced9008bd06857de1486db6 /protocols/Xfire/src/Xfire_avatar_loader.cpp | |
parent | c0d3c16aab5f5f52ede1f49ffeeafce98e3d073d (diff) |
fix for extra icons in XFire
git-svn-id: http://svn.miranda-ng.org/main/trunk@7453 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Xfire/src/Xfire_avatar_loader.cpp')
-rw-r--r-- | protocols/Xfire/src/Xfire_avatar_loader.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/protocols/Xfire/src/Xfire_avatar_loader.cpp b/protocols/Xfire/src/Xfire_avatar_loader.cpp index e1fe2fdd01..2e509d3b35 100644 --- a/protocols/Xfire/src/Xfire_avatar_loader.cpp +++ b/protocols/Xfire/src/Xfire_avatar_loader.cpp @@ -21,17 +21,17 @@ void Xfire_avatar_loader::loadThread(LPVOID lparam) { Xfire_avatar_loader* loader=(Xfire_avatar_loader*)lparam;
//kein loader, dann abbruch
- if(!lparam)
+ if (!lparam)
return;
- if(loader) {
+ if (loader) {
EnterCriticalSection(&loader->avatarMutex);
loader->threadrunning=TRUE;
}
while(1){
//keinen avatarload auftrag mehr
- if(!loader->list.size())
+ if (!loader->list.size())
break;
//letzten load process holen
@@ -40,8 +40,8 @@ void Xfire_avatar_loader::loadThread(LPVOID lparam) { //buddyinfo abfragen
GetBuddyInfo buddyinfo;
buddyinfo.userid=process.userid;
- if(loader->client)
- if(loader->client->connected)
+ if (loader->client)
+ if (loader->client->connected)
{
loader->client->send(&buddyinfo);
}
@@ -57,7 +57,7 @@ void Xfire_avatar_loader::loadThread(LPVOID lparam) { Sleep(1000);
}
- if(loader)
+ if (loader)
{
loader->threadrunning=FALSE;
LeaveCriticalSection(&loader->avatarMutex);
@@ -71,14 +71,14 @@ BOOL Xfire_avatar_loader::loadAvatar(HANDLE hcontact,char*username,unsigned int //struktur füllen
process.hcontact = hcontact;
- if(username)
+ if (username)
strcpy_s(process.username,128,username);
process.userid=userid;
//Avataranfrage an die liste übergeben
this->list.push_back(process);
- if(!threadrunning && client!=NULL) {
+ if (!threadrunning && client!=NULL) {
mir_forkthread(Xfire_avatar_loader::loadThread,(LPVOID)this);
}
|