From f927ce9b58b137846bb78a47f5a83f7261eac9ff Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 21 Jun 2015 19:46:21 +0200 Subject: Windows: Add a dedicate page for volume PIM in the volume creation wizard --- src/Common/Password.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Common/Password.c') diff --git a/src/Common/Password.c b/src/Common/Password.c index 79566877..3ae264d2 100644 --- a/src/Common/Password.c +++ b/src/Common/Password.c @@ -107,10 +107,10 @@ BOOL CheckPasswordCharEncoding (HWND hPassword, Password *ptrPw) } -BOOL CheckPasswordLength (HWND hwndDlg, HWND hwndItem, int pin, BOOL bForBoot) +BOOL CheckPasswordLength (HWND hwndDlg, unsigned __int32 passwordLength, int pin, BOOL bForBoot, BOOL bSkipPasswordWarning) { BOOL bCustomPinSmall = ((pin != 0) && (pin < (bForBoot? 98 : 485)))? TRUE : FALSE; - if (GetWindowTextLength (hwndItem) < PASSWORD_LEN_WARNING) + if (passwordLength < PASSWORD_LEN_WARNING) { if (bCustomPinSmall) { @@ -119,7 +119,7 @@ BOOL CheckPasswordLength (HWND hwndDlg, HWND hwndItem, int pin, BOOL bForBoot) } #ifndef _DEBUG - if (MessageBoxW (hwndDlg, GetString ("PASSWORD_LENGTH_WARNING"), lpszTitle, MB_YESNO|MB_ICONWARNING|MB_DEFBUTTON2) != IDYES) + if (!bSkipPasswordWarning && (MessageBoxW (hwndDlg, GetString ("PASSWORD_LENGTH_WARNING"), lpszTitle, MB_YESNO|MB_ICONWARNING|MB_DEFBUTTON2) != IDYES)) return FALSE; #endif } -- cgit v1.2.3