diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-06-07 11:11:51 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-06-07 11:11:51 +0000 |
commit | 56a880420ed22bbab92385f50773612faa0b7b61 (patch) | |
tree | b4d9bc68eda877acf401ba221979b2ad42703a34 /protocols/SkypeWeb | |
parent | 68b1aca7d93264a83df7b1f553b077879c95da71 (diff) |
SkypeWeb: Crashfix.
git-svn-id: http://svn.miranda-ng.org/main/trunk@14043 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb')
-rw-r--r-- | protocols/SkypeWeb/src/skype_avatars.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/protocols/SkypeWeb/src/skype_avatars.cpp b/protocols/SkypeWeb/src/skype_avatars.cpp index f3c8a4a154..0988f2a6d2 100644 --- a/protocols/SkypeWeb/src/skype_avatars.cpp +++ b/protocols/SkypeWeb/src/skype_avatars.cpp @@ -142,8 +142,9 @@ void CSkypeProto::GetAvatarFileName(MCONTACT hContact, TCHAR* pszDest, size_t cb void CSkypeProto::SetAvatarUrl(MCONTACT hContact, CMString &tszUrl)
{
ptrT oldUrl(getTStringA(hContact, "AvatarUrl"));
- if (tszUrl == oldUrl)
- return;
+ if (oldUrl != NULL)
+ if (tszUrl == oldUrl)
+ return;
if (tszUrl.IsEmpty()) {
delSetting(hContact, "AvatarUrl");
|