From f5584d8ae977f278ae9735f53ab868c8574c2451 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Sun, 13 Sep 2015 08:03:11 +0000 Subject: Steam: fix login git-svn-id: http://svn.miranda-ng.org/main/trunk@15338 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Steam/src/http_request.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'protocols/Steam/src/http_request.h') diff --git a/protocols/Steam/src/http_request.h b/protocols/Steam/src/http_request.h index 89e76e8ac2..126aa857f0 100644 --- a/protocols/Steam/src/http_request.h +++ b/protocols/Steam/src/http_request.h @@ -3,12 +3,16 @@ class HttpResponse : public NETLIBHTTPREQUEST, public MZeroedObject { +private: + bool isEmptyResponse; + public: const NETLIBHTTPREQUEST* request; HttpResponse(const NETLIBHTTPREQUEST* response, const NETLIBHTTPREQUEST* request = NULL) { request = request; + isEmptyResponse = (response == NULL); if (response) { cbSize = response->cbSize; @@ -32,6 +36,11 @@ public: } } + bool const operator !() const + { + return isEmptyResponse; + } + ~HttpResponse() { for (int i = 0; i < headersCount; i++) -- cgit v1.2.3