VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/Library
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2022-01-13 23:12:34 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2022-01-13 23:12:34 +0100
commit2cc35a194caf8e473d22ede8e8a5ff364cf90df6 (patch)
treeacb7d98778de19dc68a5a0ca51370161c99f9b39 /Library
parent8c05ba26fbfb9e26aa11d8142cb45b4c3881ee8e (diff)
downloadVeraCrypt-DCS-2cc35a194caf8e473d22ede8e8a5ff364cf90df6.tar.gz
VeraCrypt-DCS-2cc35a194caf8e473d22ede8e8a5ff364cf90df6.zip
Fix wrong cast for PasswordTimeout value that caused it to be limited to 255 seconds
Diffstat (limited to 'Library')
-rw-r--r--Library/VeraCryptLib/DcsVeraCrypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/VeraCryptLib/DcsVeraCrypt.c b/Library/VeraCryptLib/DcsVeraCrypt.c
index e51c560..7fbea97 100644
--- a/Library/VeraCryptLib/DcsVeraCrypt.c
+++ b/Library/VeraCryptLib/DcsVeraCrypt.c
@@ -149,7 +149,7 @@ VCAuthLoadConfig()
gPasswordProgress = (UINT8)ConfigReadInt("AuthorizeProgress", 1); // print "*"
gPasswordVisible = (UINT8)ConfigReadInt("AuthorizeVisible", 0); // show chars
gPasswordShowMark = ConfigReadInt("AuthorizeMarkTouch", 1); // show touch points
- gPasswordTimeout = (UINT8)ConfigReadInt("PasswordTimeout", 180); // If no password for <seconds> => <ESC>
+ gPasswordTimeout = (UINTN)ConfigReadInt("PasswordTimeout", 180); // If no password for <seconds> => <ESC>
gKeyboardInputDelay = (UINTN)ConfigReadInt("KeyboardInputDelay", 100); // minimum number of ms between two valid key strokes, anything between is discarded
gDcsBootForce = ConfigReadInt("DcsBootForce", 1); // Ask password even if no USB marked found.