diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2019-01-28 14:58:41 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2019-01-28 17:16:33 +0100 |
commit | cdd1179c63bb892696adfad1818d65e3026916ca (patch) | |
tree | e2d7265440b8cc51ca544d2c2412041b0d18439d /src/Common/Dlgcode.c | |
parent | 54e46c260cf04861c99d8b2590999c1eb33f0cb1 (diff) | |
download | VeraCrypt-cdd1179c63bb892696adfad1818d65e3026916ca.tar.gz VeraCrypt-cdd1179c63bb892696adfad1818d65e3026916ca.zip |
Increase password maximum length to 128 bytes from 64 bytes
Diffstat (limited to 'src/Common/Dlgcode.c')
-rw-r--r-- | src/Common/Dlgcode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c index 3de37b7c..44cf623b 100644 --- a/src/Common/Dlgcode.c +++ b/src/Common/Dlgcode.c @@ -1195,6 +1195,9 @@ void ToBootPwdField (HWND hwndDlg, UINT ctrlId) { HWND hwndCtrl = GetDlgItem (hwndDlg, ctrlId); WNDPROC originalwp = (WNDPROC) GetWindowLongPtrW (hwndCtrl, GWLP_USERDATA); + + SendMessage (hwndCtrl, EM_LIMITTEXT, MAX_LEGACY_PASSWORD, 0); + // if ToNormalPwdField has been called before, GWLP_USERDATA already contains original WNDPROC if (!originalwp) { |