From 2cc35a194caf8e473d22ede8e8a5ff364cf90df6 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Thu, 13 Jan 2022 23:12:34 +0100 Subject: Fix wrong cast for PasswordTimeout value that caused it to be limited to 255 seconds --- Library/VeraCryptLib/DcsVeraCrypt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') 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 => + gPasswordTimeout = (UINTN)ConfigReadInt("PasswordTimeout", 180); // If no password for => 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. -- cgit v1.2.3