Author: cgutman
Date: Thu Jun 16 13:07:08 2011
New Revision: 52275
URL:
http://svn.reactos.org/svn/reactos?rev=52275&view=rev
Log:
[VFATLIB]
- Fix default cluster size for floppy disks
Modified:
trunk/reactos/lib/fslib/vfatlib/fat12.c
Modified: trunk/reactos/lib/fslib/vfatlib/fat12.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/fslib/vfatlib/fat12.c?…
==============================================================================
--- trunk/reactos/lib/fslib/vfatlib/fat12.c [iso-8859-1] (original)
+++ trunk/reactos/lib/fslib/vfatlib/fat12.c [iso-8859-1] Thu Jun 16 13:07:08 2011
@@ -289,8 +289,16 @@
/* 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 >>