mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 19:08:26 -06:00
Windows: Display a balloon tip warning or error message when the value pasted to password field is truncated or when there is no room for additional characters because of maximum password length reached
This commit is contained in:
@@ -4265,7 +4265,7 @@ BOOL CALLBACK PageDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
|
||||
/* make autodetection the default */
|
||||
SendMessage (hComboBox, CB_SETCURSEL, 0, 0);
|
||||
|
||||
SendMessage (GetDlgItem (hwndDlg, IDC_PASSWORD_DIRECT), EM_LIMITTEXT, MAX_PASSWORD, 0);
|
||||
ToNormalPwdField (hwndDlg, IDC_PASSWORD_DIRECT);
|
||||
|
||||
SetPassword (hwndDlg, IDC_PASSWORD_DIRECT, szRawPassword);
|
||||
|
||||
@@ -4345,8 +4345,8 @@ BOOL CALLBACK PageDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
|
||||
StringCbCopyW (str, sizeof(str), GetString ("PASSWORD_HELP"));
|
||||
}
|
||||
|
||||
SendMessage (GetDlgItem (hwndDlg, IDC_PASSWORD), EM_LIMITTEXT, MAX_PASSWORD, 0);
|
||||
SendMessage (GetDlgItem (hwndDlg, IDC_VERIFY), EM_LIMITTEXT, MAX_PASSWORD, 0);
|
||||
ToNormalPwdField (hwndDlg, IDC_PASSWORD);
|
||||
ToNormalPwdField (hwndDlg, IDC_VERIFY);
|
||||
|
||||
SetPassword (hwndDlg, IDC_PASSWORD, szRawPassword);
|
||||
SetPassword (hwndDlg, IDC_VERIFY, szVerify);
|
||||
|
||||
Reference in New Issue
Block a user