summaryrefslogtreecommitdiff
path: root/protocols/IcqOscarJ/src/db.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-02-21 18:36:16 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-02-21 18:40:14 +0300
commitfd23a292afc4aa760a0ff8ab646eebe5942fb06d (patch)
tree31725237daf806abe7e7ab6f3fa637bc092c20ec /protocols/IcqOscarJ/src/db.cpp
parentb8a1ac529c6615d5ba6aa3d7ea9e8b4fe9ad4b71 (diff)
ICQ: C++'11 iterators
Diffstat (limited to 'protocols/IcqOscarJ/src/db.cpp')
-rw-r--r--protocols/IcqOscarJ/src/db.cpp51
1 files changed, 0 insertions, 51 deletions
diff --git a/protocols/IcqOscarJ/src/db.cpp b/protocols/IcqOscarJ/src/db.cpp
index 5daf759ed6..105566c102 100644
--- a/protocols/IcqOscarJ/src/db.cpp
+++ b/protocols/IcqOscarJ/src/db.cpp
@@ -111,57 +111,6 @@ void ChangeInfoData::ClearChangeFlags(void)
settingData[i].changed = 0;
}
-/////////////////////////////////////////////////////////////////////////////////////////
-
-struct PwConfirmDlgParam
-{
- CIcqProto* ppro;
- char* Pass;
-};
-
-static INT_PTR CALLBACK PwConfirmDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
-{
- PwConfirmDlgParam* dat = (PwConfirmDlgParam*)GetWindowLongPtr(hwndDlg, GWLP_USERDATA);
-
- switch (msg) {
- case WM_INITDIALOG:
- TranslateDialogDefault(hwndDlg);
- SetWindowLongPtr(hwndDlg, GWLP_USERDATA, lParam);
- SendDlgItemMessage(hwndDlg, IDC_PASSWORD, EM_LIMITTEXT, PASSWORDMAXLEN, 0);
- return TRUE;
-
- case WM_COMMAND:
- switch (LOWORD(wParam)) {
- case IDOK:
- {
- char szTest[16];
-
- GetDlgItemTextA(hwndDlg, IDC_OLDPASS, szTest, _countof(szTest));
-
- if (mir_strcmp(szTest, dat->ppro->GetUserPassword(TRUE))) {
- MessageBox(hwndDlg, TranslateT("The password does not match your current password. Check Caps Lock and try again."), TranslateT("Change ICQ Details"), MB_OK);
- SendDlgItemMessage(hwndDlg, IDC_OLDPASS, EM_SETSEL, 0, (LPARAM)-1);
- SetFocus(GetDlgItem(hwndDlg, IDC_OLDPASS));
- break;
- }
-
- GetDlgItemTextA(hwndDlg, IDC_PASSWORD, szTest, _countof(szTest));
- if (mir_strcmp(szTest, dat->Pass)) {
- MessageBox(hwndDlg, TranslateT("The password does not match the password you originally entered. Check Caps Lock and try again."), TranslateT("Change ICQ Details"), MB_OK);
- SendDlgItemMessage(hwndDlg, IDC_PASSWORD, EM_SETSEL, 0, (LPARAM)-1);
- SetFocus(GetDlgItem(hwndDlg, IDC_PASSWORD));
- break;
- }
- }
- case IDCANCEL:
- EndDialog(hwndDlg, wParam);
- break;
- }
- break;
- }
- return FALSE;
-}
-
int ChangeInfoData::SaveSettingsToDb()
{
int ret = 1;