summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2015-04-18 21:39:40 +0000
committerRobert Pösel <robyer@seznam.cz>2015-04-18 21:39:40 +0000
commit45678ffaea325ab8c6c85bde1d5fa2b72db7e350 (patch)
treea1fe38301ebdeac24c5a592c67164ee9547f15ee
parent40f9299507f8525a2cbe6e7e63205b6019044a4a (diff)
Facebook: Use facy.handle_ instead of global m_hNetlibUSer (it's the same anyway)
git-svn-id: http://svn.miranda-ng.org/main/trunk@12924 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--protocols/FacebookRM/src/captcha.cpp2
-rw-r--r--protocols/FacebookRM/src/communication.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/captcha.cpp b/protocols/FacebookRM/src/captcha.cpp
index 355cd7acd1..1dd064e9ab 100644
--- a/protocols/FacebookRM/src/captcha.cpp
+++ b/protocols/FacebookRM/src/captcha.cpp
@@ -113,7 +113,7 @@ bool FacebookProto::RunCaptchaForm(std::string captchaUrl, std::string &result)
req.szUrl = (char*)captchaUrl.c_str();
req.flags = NLHRF_NODUMPHEADERS;
- NETLIBHTTPREQUEST *reply = (NETLIBHTTPREQUEST*)CallService(MS_NETLIB_HTTPTRANSACTION, (WPARAM)m_hNetlibUser, (LPARAM)&req);
+ NETLIBHTTPREQUEST *reply = (NETLIBHTTPREQUEST*)CallService(MS_NETLIB_HTTPTRANSACTION, (WPARAM)facy.handle_, (LPARAM)&req);
if (reply == NULL)
return false;
diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp
index 88ce68ba1c..ad9928c9e4 100644
--- a/protocols/FacebookRM/src/communication.cpp
+++ b/protocols/FacebookRM/src/communication.cpp
@@ -1477,7 +1477,7 @@ bool facebook_client::save_url(const std::string &url, const std::tstring &filen
req.nlc = nlc;
resp = reinterpret_cast<NETLIBHTTPREQUEST*>(CallService(MS_NETLIB_HTTPTRANSACTION,
- reinterpret_cast<WPARAM>(this->parent->m_hNetlibUser), reinterpret_cast<LPARAM>(&req)));
+ reinterpret_cast<WPARAM>(handle_), reinterpret_cast<LPARAM>(&req)));
bool ret = false;