diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-09-16 17:46:05 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-09-16 17:46:05 +0000 |
commit | ab46b98479555c7106087f7d62b6c89f320ca311 (patch) | |
tree | e245d3dce9dfabbeb47aaff36135089613abe026 /protocols/Steam/src/steam_login.cpp | |
parent | af54e11be6c1c3c997baae19f9d81526d96cd2aa (diff) |
Steam:
- attempt to fix numerous crashes
git-svn-id: http://svn.miranda-ng.org/main/trunk@15365 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_login.cpp')
-rw-r--r-- | protocols/Steam/src/steam_login.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/protocols/Steam/src/steam_login.cpp b/protocols/Steam/src/steam_login.cpp index 771051a68b..b54149b03c 100644 --- a/protocols/Steam/src/steam_login.cpp +++ b/protocols/Steam/src/steam_login.cpp @@ -16,10 +16,7 @@ bool CSteamProto::IsMe(const char *steamId) void CSteamProto::OnGotRsaKey(const NETLIBHTTPREQUEST *response)
{
- if (!response)
- return;
-
- if (!response->pData)
+ if (!CheckResponse(response))
return;
// load rsa key parts
@@ -78,13 +75,7 @@ void CSteamProto::OnGotRsaKey(const NETLIBHTTPREQUEST *response) void CSteamProto::OnAuthorization(const NETLIBHTTPREQUEST *response)
{
- if (!response)
- {
- SetStatus(ID_STATUS_OFFLINE);
- return;
- }
-
- if (!response->pData)
+ if (!CheckResponse(response))
{
SetStatus(ID_STATUS_OFFLINE);
return;
@@ -269,7 +260,7 @@ void CSteamProto::HandleTokenExpired() void CSteamProto::OnLoggedOn(const NETLIBHTTPREQUEST *response)
{
- if (!response)
+ if (!CheckResponse(response))
{
// Probably timeout or no connection, we can do nothing here
SetStatus(ID_STATUS_OFFLINE);
|