mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
[VFATLIB]
- Fix default cluster size for floppy disks svn path=/trunk/; revision=52275
This commit is contained in:
@@ -289,8 +289,16 @@ Fat12Format(IN HANDLE FileHandle,
|
||||
/* Calculate cluster size */
|
||||
if (ClusterSize == 0)
|
||||
{
|
||||
/* 4KB Cluster (Harddisk only) */
|
||||
ClusterSize = 4096;
|
||||
if (DiskGeometry.MediaType == FixedMedia)
|
||||
{
|
||||
/* 4KB Cluster (Harddisk only) */
|
||||
ClusterSize = 4096;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* 512 byte cluster (floppy) */
|
||||
ClusterSize = 512;
|
||||
}
|
||||
}
|
||||
|
||||
SectorCount = PartitionInfo->PartitionLength.QuadPart >>
|
||||
|
||||
Reference in New Issue
Block a user