summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-11-23 19:56:40 +0000
committerRobert Pösel <robyer@seznam.cz>2014-11-23 19:56:40 +0000
commitd68de25a33e3dd4da8656c0ae5308290e90529e2 (patch)
tree6f2480a2feed24a8749fba182af2f28b8559bfa7
parent2fda23f3dd57b4d4705f2baeae20f8414c187d12 (diff)
Steam: Fixed few more forgotten crash places
git-svn-id: http://svn.miranda-ng.org/main/trunk@11044 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--protocols/Steam/src/steam_contacts.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/Steam/src/steam_contacts.cpp b/protocols/Steam/src/steam_contacts.cpp
index 294ba8ba5c..797ae0e166 100644
--- a/protocols/Steam/src/steam_contacts.cpp
+++ b/protocols/Steam/src/steam_contacts.cpp
@@ -334,6 +334,7 @@ void CSteamProto::OnGotAvatar(const NETLIBHTTPREQUEST *response, void *arg)
{
ptrA steamId(getStringA(hContact, "SteamID"));
debugLogA("CSteamProto::OnGotAvatar: failed to get avatar %s", steamId);
+ return;
}
ptrW avatarPath(GetAvatarFilePath(hContact));
@@ -378,6 +379,7 @@ void CSteamProto::OnFriendBlocked(const NETLIBHTTPREQUEST *response, void *arg)
if (response == NULL || response->resultCode != HTTP_STATUS_OK || lstrcmpiA(response->pData, "true"))
{
debugLogA("CSteamProto::OnFriendIgnored: failed to ignore friend %s", ptrA((char*)arg));
+ return;
}
}
@@ -386,6 +388,7 @@ void CSteamProto::OnFriendRemoved(const NETLIBHTTPREQUEST *response, void *arg)
if (response == NULL || response->resultCode != HTTP_STATUS_OK || lstrcmpiA(response->pData, "true"))
{
debugLogA("CSteamProto::OnFriendRemoved: failed to remove friend %s", ptrA((char*)arg));
+ return;
}
}
@@ -454,6 +457,7 @@ void CSteamProto::OnPendingApproved(const NETLIBHTTPREQUEST *response, void *arg
if (response == NULL || response->resultCode != HTTP_STATUS_OK)
{
debugLogA("CSteamProto::OnPendingApproved: failed to approve pending from %s", ptrA((char*)arg));
+ return;
}
JSONNODE *root = json_parse(response->pData), *node;
@@ -473,6 +477,7 @@ void CSteamProto::OnPendingIgnoreded(const NETLIBHTTPREQUEST *response, void *ar
if (response == NULL || response->resultCode != HTTP_STATUS_OK)
{
debugLogA("CSteamProto::OnPendingApproved: failed to ignore pending from %s", ptrA((char*)arg));
+ return;
}
JSONNODE *root = json_parse(response->pData), *node;