diff options
Diffstat (limited to 'protocols/Steam/src/Steam/friend_list.h')
-rw-r--r-- | protocols/Steam/src/Steam/friend_list.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/protocols/Steam/src/Steam/friend_list.h b/protocols/Steam/src/Steam/friend_list.h index 5cd683fa9b..59df8918b0 100644 --- a/protocols/Steam/src/Steam/friend_list.h +++ b/protocols/Steam/src/Steam/friend_list.h @@ -28,7 +28,10 @@ namespace SteamWebApi request.AddParameter("steamid", steamId);
mir_ptr<NETLIBHTTPREQUEST> response(request.Send());
- if (!response || response->resultCode != HTTP_STATUS_OK)
+ if (!response)
+ return;
+
+ if ((friendList->status = (HTTP_STATUS)response->resultCode) != HTTP_STATUS_OK)
return;
JSONNODE *root = json_parse(response->pData), *node, *child;
|