VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Format
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2018-08-16 01:08:37 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2018-08-16 01:12:46 +0200
commit558746c4826ca5f5a574233b484a74ca19706ccc (patch)
tree1025c004fcafd45d587b4e577ccf287dccc8719b /src/Format
parentc2b69b248c004e097ffc1aa4c0dde0ddd0ba54f7 (diff)
downloadVeraCrypt-558746c4826ca5f5a574233b484a74ca19706ccc.tar.gz
VeraCrypt-558746c4826ca5f5a574233b484a74ca19706ccc.zip
Windows: Fix regression that caused the system encryption wizard to crash when displaying password field.
Diffstat (limited to 'src/Format')
-rw-r--r--src/Format/Tcformat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Format/Tcformat.c b/src/Format/Tcformat.c
index 54379715..2f8b9b2f 100644
--- a/src/Format/Tcformat.c
+++ b/src/Format/Tcformat.c
@@ -4301,6 +4301,9 @@ BOOL CALLBACK PageDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
hPasswordInputField = GetDlgItem (hwndDlg, IDC_PASSWORD);
hVerifyPasswordInputField = GetDlgItem (hwndDlg, IDC_VERIFY);
+ ToNormalPwdField (hwndDlg, IDC_PASSWORD);
+ ToNormalPwdField (hwndDlg, IDC_VERIFY);
+
if (SysEncInEffect ())
{
ToBootPwdField (hwndDlg, IDC_PASSWORD);
@@ -4345,9 +4348,6 @@ BOOL CALLBACK PageDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
StringCbCopyW (str, sizeof(str), GetString ("PASSWORD_HELP"));
}
- ToNormalPwdField (hwndDlg, IDC_PASSWORD);
- ToNormalPwdField (hwndDlg, IDC_VERIFY);
-
SetPassword (hwndDlg, IDC_PASSWORD, szRawPassword);
SetPassword (hwndDlg, IDC_VERIFY, szVerify);