From 7f06a44898953c7ba98b05102a2ebd4bfbaf3b43 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Fri, 23 Jan 2009 10:07:15 +0000 Subject: [PATCH] - Fix FatValidSectorsPerCluster, otherwise it ended up always being true for any sectors amount. svn path=/trunk/; revision=39031 --- reactos/drivers/filesystems/fastfat_new/fat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/drivers/filesystems/fastfat_new/fat.h b/reactos/drivers/filesystems/fastfat_new/fat.h index 2b56ad0da6d..be3ecf69a0e 100644 --- a/reactos/drivers/filesystems/fastfat_new/fat.h +++ b/reactos/drivers/filesystems/fastfat_new/fat.h @@ -132,7 +132,7 @@ typedef struct BIOS_PARAMETER_BLOCK (!((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 {