From e9042b4e5af6ef98e5e8500a2479e4784249bd2e Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Wed, 20 Aug 2003 15:15:30 +0000 Subject: [PATCH] Fixed FAT32 cluster size calculation (GB instead of MB). svn path=/trunk/; revision=5705 --- reactos/lib/fslib/vfatlib/vfatlib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/lib/fslib/vfatlib/vfatlib.c b/reactos/lib/fslib/vfatlib/vfatlib.c index fd94a645dcd..b2a27332d06 100755 --- a/reactos/lib/fslib/vfatlib/vfatlib.c +++ b/reactos/lib/fslib/vfatlib/vfatlib.c @@ -429,17 +429,17 @@ VfatFormat( /* Calculate cluster size */ if (ClusterSize == 0) { - if (PartitionInfo.PartitionLength.QuadPart < 8ULL * 1024ULL * 1024ULL) + if (PartitionInfo.PartitionLength.QuadPart < 8ULL * 1024ULL * 1024ULL * 1024ULL) { /* Partition < 8GB ==> 4KB Cluster */ ClusterSize = 4096; } - else if (PartitionInfo.PartitionLength.QuadPart < 16ULL * 1024ULL * 1024ULL) + else if (PartitionInfo.PartitionLength.QuadPart < 16ULL * 1024ULL * 1024ULL * 1024ULL) { /* Partition 8GB - 16GB ==> 8KB Cluster */ ClusterSize = 8192; } - else if (PartitionInfo.PartitionLength.QuadPart < 32ULL * 1024ULL * 1024ULL) + else if (PartitionInfo.PartitionLength.QuadPart < 32ULL * 1024ULL * 1024ULL * 1024ULL) { /* Partition 16GB - 32GB ==> 16KB Cluster */ ClusterSize = 16384;