diff options
author | George Hazan <george.hazan@gmail.com> | 2013-11-20 13:29:51 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-11-20 13:29:51 +0000 |
commit | 9845eae91ff808b703e430da0f74ea01b4c0a157 (patch) | |
tree | 1e459c957406003f575c1d28d148490c92428eca /protocols/MRA/src/Mra_options.cpp | |
parent | ca2a90cb613a130b878b9ac4db6708bbd140b66b (diff) |
own password storage removed from MRA
git-svn-id: http://svn.miranda-ng.org/main/trunk@6946 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MRA/src/Mra_options.cpp')
-rw-r--r-- | protocols/MRA/src/Mra_options.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
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;
}
|