mirror of
https://github.com/reactos/reactos.git
synced 2025-06-05 09:20:30 +00:00
[VFATLIB]
- Fix default cluster size for floppy disks svn path=/trunk/; revision=52275
This commit is contained in:
parent
6220537b5f
commit
6e97490ee0
1 changed files with 10 additions and 2 deletions
|
@ -289,8 +289,16 @@ Fat12Format(IN HANDLE FileHandle,
|
||||||
/* Calculate cluster size */
|
/* Calculate cluster size */
|
||||||
if (ClusterSize == 0)
|
if (ClusterSize == 0)
|
||||||
{
|
{
|
||||||
/* 4KB Cluster (Harddisk only) */
|
if (DiskGeometry.MediaType == FixedMedia)
|
||||||
ClusterSize = 4096;
|
{
|
||||||
|
/* 4KB Cluster (Harddisk only) */
|
||||||
|
ClusterSize = 4096;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/* 512 byte cluster (floppy) */
|
||||||
|
ClusterSize = 512;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SectorCount = PartitionInfo->PartitionLength.QuadPart >>
|
SectorCount = PartitionInfo->PartitionLength.QuadPart >>
|
||||||
|
|
Loading…
Reference in a new issue