diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-03-15 11:20:05 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-03-15 11:20:05 +0000 |
commit | 641c67a9d552b07664308c2ae3384cc95a75a2d0 (patch) | |
tree | b9e29c5bf201211065b912bb2048143152c82201 /protocols/Steam/src/steam_queue.cpp | |
parent | 108bb117b2a796e8a99d7add61f304730b9ecadb (diff) |
Steam:
- added support for templated url
- fixed broken login
- version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@12408 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_queue.cpp')
-rw-r--r-- | protocols/Steam/src/steam_queue.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/protocols/Steam/src/steam_queue.cpp b/protocols/Steam/src/steam_queue.cpp index ff61da24a7..6ef1aee6f7 100644 --- a/protocols/Steam/src/steam_queue.cpp +++ b/protocols/Steam/src/steam_queue.cpp @@ -63,9 +63,7 @@ void CSteamProto::StopQueue() ptrA umqid(getStringA("UMQID"));
SteamWebApi::HttpRequest *request = new SteamWebApi::LogoffRequest(token, umqid);
- debugLogA("CSteamProto::StopQueue: %s", request->szUrl);
- request->szUrl = (char*)request->url.c_str();
- NETLIBHTTPREQUEST *response = (NETLIBHTTPREQUEST*)CallService(MS_NETLIB_HTTPTRANSACTION, (WPARAM)m_hNetlibUser, (LPARAM)request);
+ NETLIBHTTPREQUEST *response = request->Send(m_hNetlibUser);
CallService(MS_NETLIB_FREEHTTPREQUESTSTRUCT, 0, (LPARAM)response);
delete request;
@@ -113,10 +111,7 @@ void CSteamProto::ExecuteRequest(QueueItem *item) return;
}
- debugLogA("CSteamProto::ExecuteRequest: %s", item->request->szUrl);
-
- item->request->szUrl = (char*)item->request->url.c_str();
- NETLIBHTTPREQUEST *response = (NETLIBHTTPREQUEST*)CallService(MS_NETLIB_HTTPTRANSACTION, (WPARAM)m_hNetlibUser, (LPARAM)item->request);
+ NETLIBHTTPREQUEST *response = item->request->Send(m_hNetlibUser);
if (item->responseCallback != NULL)
(this->*(item->responseCallback))(response, item->arg);
@@ -128,7 +123,7 @@ void CSteamProto::ExecuteRequest(QueueItem *item) }
/*else if (requestItem->responseFailedCallback != NULL)
{
- (this->*(requestItem->responseFailedCallback))(response);
+ (this->*(requestItem->responseFailedCallback))(response);
}*/
delete item;
|