VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-04-26 18:36:43 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-04-27 23:59:53 +0200
commiteac440ae9e9d313712bef01fcd7e70ff255e0eea (patch)
tree770b079f808ec3b94d871a846fc55413f721cb7d /src/Common
parentdc3bc64b8685aeec3ab461e632a1604833ed6fd6 (diff)
downloadVeraCrypt-eac440ae9e9d313712bef01fcd7e70ff255e0eea.tar.gz
VeraCrypt-eac440ae9e9d313712bef01fcd7e70ff255e0eea.zip
Windows: Support A: and B: as driver letters for mounting volumes.
Diffstat (limited to 'src/Common')
-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;