From ac6607c5f76566c2c840ca3955a22448738df9b3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 28 Jan 2019 15:51:04 +0300 Subject: mir_urlDecode & mir_urlEncode to return CMStringA --- protocols/Steam/src/http_request.h | 4 ++-- protocols/Steam/src/stdafx.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'protocols/Steam/src') diff --git a/protocols/Steam/src/http_request.h b/protocols/Steam/src/http_request.h index 3d87defe43..7e8213b87d 100644 --- a/protocols/Steam/src/http_request.h +++ b/protocols/Steam/src/http_request.h @@ -80,7 +80,7 @@ public: HttpUri &operator<<(const CHAR_PARAM ¶m) { - AppendFormat("%s=%s", param.szName, ptrA(mir_urlEncode(param.szValue))); + AppendFormat("%s=%s", param.szName, mir_urlEncode(param.szValue).c_str()); return *this; } }; @@ -269,7 +269,7 @@ __forceinline FormUrlEncodedContent* operator<<(FormUrlEncodedContent *content, __forceinline FormUrlEncodedContent* operator<<(FormUrlEncodedContent *content, const CHAR_PARAM ¶m) { - content->AppendFormat("%s=%s", param.szName, ptrA(mir_urlEncode(param.szValue))); + content->AppendFormat("%s=%s", param.szName, mir_urlEncode(param.szValue).c_str()); return content; } diff --git a/protocols/Steam/src/stdafx.h b/protocols/Steam/src/stdafx.h index 9eb34490c8..0783ee01e4 100644 --- a/protocols/Steam/src/stdafx.h +++ b/protocols/Steam/src/stdafx.h @@ -24,7 +24,6 @@ #include #include #include -#include #include #include #include -- cgit v1.2.3