diff options
author | George Hazan <ghazan@miranda.im> | 2021-01-08 14:54:51 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-01-08 14:54:51 +0300 |
commit | 64579d553e4089d55c136140bd0058696d2cf526 (patch) | |
tree | 7b7e6c5cd03b9060bd7080b5981938005436b432 /plugins/Dbx_mdbx/src/ui.cpp | |
parent | dae0d079ad629d499034ff911e0b1a807c19fce0 (diff) |
another bunch of duplicate code moved to the core
Diffstat (limited to 'plugins/Dbx_mdbx/src/ui.cpp')
-rw-r--r-- | plugins/Dbx_mdbx/src/ui.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/Dbx_mdbx/src/ui.cpp b/plugins/Dbx_mdbx/src/ui.cpp index 971f31c8db..6b7ce1fe83 100644 --- a/plugins/Dbx_mdbx/src/ui.cpp +++ b/plugins/Dbx_mdbx/src/ui.cpp @@ -43,13 +43,11 @@ void LanguageChanged(HWND hwndDlg) static bool CheckOldPassword(HWND hwndDlg, CDbxMDBX *db)
{
- if (db->usesPassword())
- {
+ if (db->usesPassword()) {
wchar_t buf[100];
GetDlgItemText(hwndDlg, IDC_OLDPASS, buf, _countof(buf));
pass_ptrA oldPass(mir_utf8encodeW(buf));
- if (!db->getCrypt()->checkPassword(oldPass))
- {
+ if (!db->getCrypt()->checkPassword(oldPass)) {
SetDlgItemText(hwndDlg, IDC_HEADERBAR, TranslateT("Wrong old password entered!"));
return false;
}
|