summaryrefslogtreecommitdiff
path: root/plugins/Dbx_mdbx/src/ui.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-01-08 14:54:51 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-01-08 14:54:51 +0300
commit64579d553e4089d55c136140bd0058696d2cf526 (patch)
tree7b7e6c5cd03b9060bd7080b5981938005436b432 /plugins/Dbx_mdbx/src/ui.cpp
parentdae0d079ad629d499034ff911e0b1a807c19fce0 (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.cpp6
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;
}