@@ -6434,7 +6434,7 @@ BOOL CALLBACK MainDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
64346434 if (volumePassword .Length > 0 )
64356435 {
64366436 // Check password length (check also done for outer volume which is not the case in TrueCrypt).
6437- if (!CheckPasswordLength (NULL , volumePassword .Length , volumePim , FALSE, 0 , Silent , Silent ))
6437+ if (!CheckPasswordLength (NULL , volumePassword .Length , volumePim , FALSE, hash_algo , Silent , Silent ))
64386438 {
64396439 exit (1 );
64406440 }
@@ -7699,7 +7699,7 @@ BOOL CALLBACK MainDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
76997699 return 1 ;
77007700 }
77017701 // Check password length (check also done for outer volume which is not the case in TrueCrypt).
7702- else if (!CheckPasswordLength (hwndDlg , volumePassword .Length , 0 , SysEncInEffect (), SysEncInEffect ()? hash_algo : 0 , FALSE, FALSE))
7702+ else if (!CheckPasswordLength (hwndDlg , volumePassword .Length , 0 , SysEncInEffect (), hash_algo , FALSE, FALSE))
77037703 {
77047704 return 1 ;
77057705 }
@@ -7810,7 +7810,7 @@ BOOL CALLBACK MainDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
78107810 return 1 ;
78117811 }
78127812 // Check password length (check also done for outer volume which is not the case in TrueCrypt).
7813- else if (!CheckPasswordLength (hwndDlg , volumePassword .Length , volumePim , SysEncInEffect (), SysEncInEffect ()? hash_algo : 0 , TRUE, FALSE))
7813+ else if (!CheckPasswordLength (hwndDlg , volumePassword .Length , volumePim , SysEncInEffect (), hash_algo , TRUE, FALSE))
78147814 {
78157815 return 1 ;
78167816 }
0 commit comments