VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/Dlgcode.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Common/Dlgcode.c')
-rw-r--r--src/Common/Dlgcode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c
index 94b1fc05..b96891c3 100644
--- a/src/Common/Dlgcode.c
+++ b/src/Common/Dlgcode.c
@@ -6072,7 +6072,7 @@ int GetFirstAvailableDrive ()
DWORD dwUsedDrives = GetLogicalDrives();
int i;
- for (i = 3; i < 26; i++)
+ for (i = 0; i < 26; i++)
{
if (!(dwUsedDrives & 1 << i))
return i;
@@ -6087,7 +6087,7 @@ int GetLastAvailableDrive ()
DWORD dwUsedDrives = GetLogicalDrives();
int i;
- for (i = 25; i > 2; i--)
+ for (i = 25; i >= 0; i--)
{
if (!(dwUsedDrives & 1 << i))
return i;