mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-29 14:05:22 -04:00
[core] allow the use of A: and B: as drive letters and fix in-use detection for Z:
* Closes #1016 * Also expand support for Arch Linux derivatives Syslinux config files
This commit is contained in:
parent
9464ae94a4
commit
4a213c3ba0
4 changed files with 8 additions and 10 deletions
|
@ -431,9 +431,6 @@ static BOOL _GetDriveLettersAndType(DWORD DriveIndex, char* drive_letters, UINT*
|
|||
if (!isalpha(*drive))
|
||||
continue;
|
||||
*drive = (char)toupper((int)*drive);
|
||||
if (*drive < 'C') {
|
||||
continue;
|
||||
}
|
||||
|
||||
// IOCTL_STORAGE_GET_DEVICE_NUMBER's STORAGE_DEVICE_NUMBER.DeviceNumber is
|
||||
// not unique! An HDD, a DVD and probably other drives can have the same
|
||||
|
@ -502,7 +499,7 @@ char GetUnusedDriveLetter(void)
|
|||
goto out;
|
||||
}
|
||||
|
||||
for (drive_letter = 'C'; drive_letter < 'Z'; drive_letter++) {
|
||||
for (drive_letter = 'C'; drive_letter <= 'Z'; drive_letter++) {
|
||||
for (drive = drives ;*drive; drive += safe_strlen(drive)+1) {
|
||||
if (!isalpha(*drive))
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue