summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-01-23 14:41:10 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-01-23 14:41:10 +0300
commit26c0650cf4a720572fe262d40615ef8e3787368a (patch)
tree160c7faed6ead4af4ba8fe91932f2849df7ea74b /protocols
parent003b1efecbd2b1de05d320255ec869dd200736d0 (diff)
fixes #1787 (ICQ-WIM: sometimes first search attempt fails)
Diffstat (limited to 'protocols')
-rw-r--r--protocols/ICQ-WIM/src/http.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/ICQ-WIM/src/http.cpp b/protocols/ICQ-WIM/src/http.cpp
index e0bd34d17a..16c410c333 100644
--- a/protocols/ICQ-WIM/src/http.cpp
+++ b/protocols/ICQ-WIM/src/http.cpp
@@ -153,6 +153,9 @@ void CIcqProto::ExecuteRequest(AsyncHttpRequest *pReq)
return;
}
+ char buf[40];
+ _itoa_s(m_iRClientId, buf, 10);
+ pReq->ReplaceJsonParam("clientId", buf);
pReq->ReplaceJsonParam("authToken", m_szRToken);
pReq->dataLength = pReq->m_szParam.GetLength();
pReq->pData = mir_strdup(pReq->m_szParam);