mirror of
https://github.com/reactos/reactos.git
synced 2025-05-31 15:08:14 +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 */
|
||||
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 >>
|
||||
|
|
Loading…
Reference in a new issue