From ab46b98479555c7106087f7d62b6c89f320ca311 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Wed, 16 Sep 2015 17:46:05 +0000 Subject: Steam: - attempt to fix numerous crashes git-svn-id: http://svn.miranda-ng.org/main/trunk@15365 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Steam/src/http_request.h | 7 +++++++ 1 file changed, 7 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 126aa857f0..3e91209907 100644 --- a/protocols/Steam/src/http_request.h +++ b/protocols/Steam/src/http_request.h @@ -152,5 +152,12 @@ public: }; +bool __forceinline ResponseHttpOk(const NETLIBHTTPREQUEST *response) { + return (response && response->pData && (response->resultCode == HTTP_CODE_OK)); +} + +bool __forceinline CheckResponse(const NETLIBHTTPREQUEST *response) { + return (response && response->pData); +} #endif //_HTTP_REQUEST_H_ \ No newline at end of file -- cgit v1.2.3