From 41ba7a06d3ac55752f9f50a1454eacdda62b1ae4 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Tue, 7 Aug 2018 00:56:56 +0200 Subject: 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 --- src/ExpandVolume/WinMain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ExpandVolume') diff --git a/src/ExpandVolume/WinMain.cpp b/src/ExpandVolume/WinMain.cpp index 3fea0407..f6735891 100644 --- a/src/ExpandVolume/WinMain.cpp +++ b/src/ExpandVolume/WinMain.cpp @@ -440,7 +440,7 @@ BOOL CALLBACK ExtcvPasswordDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARA /* make autodetection the default */ SendMessage (hComboBox, CB_SETCURSEL, 0, 0); - SendMessage (GetDlgItem (hwndDlg, IDC_PASSWORD), EM_LIMITTEXT, MAX_PASSWORD, 0); + ToNormalPwdField (hwndDlg, IDC_PASSWORD); SendMessage (GetDlgItem (hwndDlg, IDC_CACHE), BM_SETCHECK, bCacheInDriver ? BST_CHECKED:BST_UNCHECKED, 0); SendMessage (GetDlgItem (hwndDlg, IDC_PIM), EM_LIMITTEXT, MAX_PIM, 0); -- cgit v1.2.3