summaryrefslogtreecommitdiff
path: root/protocols/Xfire/src/userdetails.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-02-23 11:27:13 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-02-23 11:27:13 +0000
commit465f5035c1059262b8e0b938b971f0a26015ca36 (patch)
tree0afd134d261311c96f629547c2a1348e8e905a65 /protocols/Xfire/src/userdetails.cpp
parent3350965c81488d6019936b3d6bf3b96decaf6709 (diff)
XFire: Minor fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@12243 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Xfire/src/userdetails.cpp')
-rw-r--r--protocols/Xfire/src/userdetails.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/protocols/Xfire/src/userdetails.cpp b/protocols/Xfire/src/userdetails.cpp
index bd0957ac42..0279678928 100644
--- a/protocols/Xfire/src/userdetails.cpp
+++ b/protocols/Xfire/src/userdetails.cpp
@@ -38,16 +38,16 @@ extern Xfire_gamelist xgamelist;
//als funktion, damit es per thread geladen werden kann
-void LoadProfilStatus(LPVOID lparam) {
- if (!lparam || !ghwndDlg)
+void LoadProfilStatus(void *arg) {
+ char *fname = (char*) arg;
+ if (!fname || !ghwndDlg)
return;
//dl
- char url[255] = "http://miniprofile.xfire.com/bg/sh/type/1/";
+ char url[255];
+ mir_snprintf(url, SIZEOF(url),"http://miniprofile.xfire.com/bg/sh/type/1/%s.png",fname);
char* buf = NULL;
unsigned int size = 0;
- strcat_s(url, 255, (char*)lparam);
- strcat_s(url, 255, ".png");
//versuche das icon aus dem inet zulasen
if (GetWWWContent2(url, NULL, FALSE, &buf, &size))
@@ -58,7 +58,7 @@ void LoadProfilStatus(LPVOID lparam) {
delete[] buf;
SendDlgItemMessage(ghwndDlg, IDC_PROFILIMG, STM_SETIMAGE, IMAGE_BITMAP, (LPARAM)hbitmap);
}
- delete[] lparam;
+ delete[] fname;
}
void SetItemTxt(HWND hwndDlg, int feldid, char*feld, MCONTACT hcontact, int type)