From 9845eae91ff808b703e430da0f74ea01b4c0a157 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 20 Nov 2013 13:29:51 +0000 Subject: own password storage removed from MRA git-svn-id: http://svn.miranda-ng.org/main/trunk@6946 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/MRA/src/Mra_options.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'protocols/MRA/src/Mra_options.cpp') diff --git a/protocols/MRA/src/Mra_options.cpp b/protocols/MRA/src/Mra_options.cpp index cfd9cca5b9..5fd6a27b67 100644 --- a/protocols/MRA/src/Mra_options.cpp +++ b/protocols/MRA/src/Mra_options.cpp @@ -40,10 +40,9 @@ INT_PTR CALLBACK DlgProcOptsAccount(HWND hWndDlg, UINT msg, WPARAM wParam, LPARA GetDlgItemText(hWndDlg, IDC_LOGIN, szBuff, SIZEOF(szBuff)); ppro->setTString(NULL, "e-mail", szBuff); - char szPass[MAX_EMAIL_LEN]; - if (GetDlgItemTextA(hWndDlg, IDC_PASSWORD, szPass, SIZEOF(szPass))) { - ppro->SetPassDB(szPass); - SecureZeroMemory(szPass, SIZEOF(szPass)); + if (GetDlgItemText(hWndDlg, IDC_PASSWORD, szBuff, SIZEOF(szBuff))) { + ppro->setTString("Password", szBuff); + SecureZeroMemory(szBuff, SIZEOF(szBuff)); } return TRUE; } @@ -93,10 +92,9 @@ INT_PTR CALLBACK DlgProcAccount(HWND hWndDlg, UINT msg, WPARAM wParam, LPARAM lP GetDlgItemText(hWndDlg, IDC_LOGIN, szBuff, SIZEOF(szBuff)); ppro->mraSetStringW(NULL, "e-mail", szBuff); - char szPass[MAX_EMAIL_LEN]; - if (GetDlgItemTextA(hWndDlg, IDC_PASSWORD, szPass, SIZEOF(szPass))) { - ppro->SetPassDB(szPass); - SecureZeroMemory(szPass, SIZEOF(szPass)); + if (GetDlgItemText(hWndDlg, IDC_PASSWORD, szBuff, SIZEOF(szBuff))) { + ppro->setTString("Password", szBuff); + SecureZeroMemory(szBuff, sizeof(szBuff)); } return TRUE; } -- cgit v1.2.3