summaryrefslogtreecommitdiff
path: root/protocols/MSN/src/msn_auth.cpp
diff options
context:
space:
mode:
authorPiotr Piastucki <leech.miranda@gmail.com>2015-08-10 12:16:50 +0000
committerPiotr Piastucki <leech.miranda@gmail.com>2015-08-10 12:16:50 +0000
commit328f3691c1a59fe92104d15a088293ef9d59d44d (patch)
tree99b36413ce51b1c05c05ef7e9059b2e7f886e4d3 /protocols/MSN/src/msn_auth.cpp
parent6f22e0c5fc96941c1016d87427406e814952696b (diff)
Fixed MSN IEEmbed window to support accelerator keys.
git-svn-id: http://svn.miranda-ng.org/main/trunk@14896 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MSN/src/msn_auth.cpp')
-rw-r--r--protocols/MSN/src/msn_auth.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/MSN/src/msn_auth.cpp b/protocols/MSN/src/msn_auth.cpp
index 0a7cff86bf..e9dde450aa 100644
--- a/protocols/MSN/src/msn_auth.cpp
+++ b/protocols/MSN/src/msn_auth.cpp
@@ -730,6 +730,8 @@ void CMsnProto::SaveAuthTokensDB(void)
}
typedef struct {
+ /* Internal */
+ IEEmbed *pEmbed;
/* Input */
CMsnProto *pProto;
NETLIBHTTPREQUEST *nlhr;
@@ -737,8 +739,6 @@ typedef struct {
/* Output */
char *pszURL;
char *pszCookies;
- /* Internal */
- IEEmbed *pEmbed;
} IEAUTH_PARAM;
LRESULT CALLBACK AuthWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
@@ -755,9 +755,9 @@ LRESULT CALLBACK AuthWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPar
case WM_CREATE:
{
IEAUTH_PARAM *pAuth = (IEAUTH_PARAM*)((LPCREATESTRUCT)lParam)->lpCreateParams;
+ SetWindowLongPtr(hwnd, GWLP_USERDATA, (LONG_PTR)pAuth);
pAuth->pEmbed = new IEEmbed(hwnd);
WCHAR *pwszCookies = mir_a2u(pAuth->nlhr->headers[1].szValue);
- SetWindowLongPtr(hwnd, GWLP_USERDATA, (LONG_PTR)pAuth);
pAuth->pEmbed->addCookie(pwszCookies);
pAuth->pEmbed->navigate(AUTH_URL);
mir_free(pwszCookies);
@@ -966,7 +966,7 @@ int CMsnProto::MSN_AuthOAuth(void)
* window in order to let user login there. May also be used for 2-factor auth */
if (nlhrReply2->resultCode == 200 && nlhrReply2->pData) {
UINT uThreadId;
- IEAUTH_PARAM param = {this, &nlhr, nlhrReply2, NULL, NULL, NULL};
+ IEAUTH_PARAM param = {NULL, this, &nlhr, nlhrReply2, NULL, NULL};
bAskingForAuth = true;
WaitForSingleObject(ForkThreadEx(&CMsnProto::msn_IEAuthThread, &param, &uThreadId), INFINITE);