VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-04-26 16:36:43 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-04-27 21:59:53 (GMT)
commiteac440ae9e9d313712bef01fcd7e70ff255e0eea (patch)
tree770b079f808ec3b94d871a846fc55413f721cb7d /src/Common
parentdc3bc64b8685aeec3ab461e632a1604833ed6fd6 (diff)
downloadVeraCrypt-eac440ae9e9d313712bef01fcd7e70ff255e0eea.zip
VeraCrypt-eac440ae9e9d313712bef01fcd7e70ff255e0eea.tar.gz
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 94b1fc0..b96891c 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;