From 1379269587e6f158a22e2bc784861a881e23f3d1 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 25 Oct 2010 12:40:54 +0200 Subject: [PATCH] kernel32: Fix a FAT format sanity check for floppies. --- dlls/kernel32/volume.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/kernel32/volume.c b/dlls/kernel32/volume.c index 17e70e5ff9b..19858cf8efd 100644 --- a/dlls/kernel32/volume.c +++ b/dlls/kernel32/volume.c @@ -368,7 +368,7 @@ static enum fs_type VOLUME_ReadFATSuperblock( HANDLE handle, BYTE *buff ) reasonable = num_boot_sectors < total_sectors && num_fats < 16 && bytes_per_sector >= 512 && bytes_per_sector % 512 == 0 && - sectors_per_cluster > 1; + sectors_per_cluster >= 1; if (!reasonable) return FS_UNKNOWN; sectors = total_sectors - num_boot_sectors - num_fats * sect_per_fat - (num_root_dir_ents * 32 + bytes_per_sector - 1) / bytes_per_sector;