[ros-diffs] [fireball] 39031: - Fix FatValidSectorsPerCluster, otherwise it ended up always being true for any sectors amount.
fireball at svn.reactos.org
fireball at svn.reactos.org
Fri Jan 23 11:07:16 CET 2009
Author: fireball
Date: Fri Jan 23 04:07:15 2009
New Revision: 39031
URL: http://svn.reactos.org/svn/reactos?rev=39031&view=rev
Log:
- Fix FatValidSectorsPerCluster, otherwise it ended up always being true for any sectors amount.
Modified:
trunk/reactos/drivers/filesystems/fastfat_new/fat.h
Modified: trunk/reactos/drivers/filesystems/fastfat_new/fat.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfat_new/fat.h?rev=39031&r1=39030&r2=39031&view=diff
==============================================================================
--- trunk/reactos/drivers/filesystems/fastfat_new/fat.h [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fastfat_new/fat.h [iso-8859-1] Fri Jan 23 04:07:15 2009
@@ -132,7 +132,7 @@
(!((xBytes) & ((xBytes)-1)) && (xBytes)>=0x80 && (xBytes)<=0x1000)
#define FatValidSectorsPerCluster(xSectors) \
- (!((xSectors) & ((xSectors)-1)) && (xSectors)>=0 && (xSectors)<=0x80)
+ (!((xSectors) & ((xSectors)-1)) && (xSectors)>0 && (xSectors)<=0x80)
typedef struct _PACKED_BOOT_SECTOR
{
More information about the Ros-diffs
mailing list