1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 11:08:02 -06:00

Windows: Support A: and B: as driver letters for mounting volumes.

This commit is contained in:
Mounir IDRASSI
2015-04-26 18:36:43 +02:00
parent dc3bc64b86
commit eac440ae9e
3 changed files with 10 additions and 10 deletions

View File

@@ -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;