summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/http_request.h
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-09-16 17:46:05 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-09-16 17:46:05 +0000
commitab46b98479555c7106087f7d62b6c89f320ca311 (patch)
treee245d3dce9dfabbeb47aaff36135089613abe026 /protocols/Steam/src/http_request.h
parentaf54e11be6c1c3c997baae19f9d81526d96cd2aa (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/http_request.h')
-rw-r--r--protocols/Steam/src/http_request.h7
1 files changed, 7 insertions, 0 deletions
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