mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 12:23:28 +00:00
[USETUP]
- Allow removable media to be selected as an installation target - Fix broken unpartitioned space calculation if the first partition starts below the disk's track size (such as a 1MB aligned partition) svn path=/trunk/; revision=55215
This commit is contained in:
@@ -374,7 +374,8 @@ ScanForUnpartitionedDiskSpace (PDISKENTRY DiskEntry)
|
||||
PartEntry->PartInfo[j].StartingOffset.QuadPart -
|
||||
(LastStartingOffset + LastPartitionLength);
|
||||
|
||||
if (LastUnusedPartitionLength >= DiskEntry->CylinderSize)
|
||||
if (PartEntry->PartInfo[j].StartingOffset.QuadPart > (LastStartingOffset + LastPartitionLength) &&
|
||||
LastUnusedPartitionLength >= DiskEntry->CylinderSize)
|
||||
{
|
||||
DPRINT ("Unpartitioned disk space %I64u\n", LastUnusedPartitionLength);
|
||||
|
||||
@@ -718,7 +719,8 @@ AddDiskToList (HANDLE FileHandle,
|
||||
return;
|
||||
}
|
||||
|
||||
if (DiskGeometry.MediaType != FixedMedia)
|
||||
if (DiskGeometry.MediaType != FixedMedia &&
|
||||
DiskGeometry.MediaType != RemovableMedia)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user