summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-11-05 11:27:36 -0800
committerKévin THIERRY <kevin.thierry@open.eurogiciel.org>2014-11-05 16:29:38 +0100
commitd85958f8ab53f637930129e510a68ba594e6b5b8 (patch)
tree7a1c71795df442e50a4e502aac9957bb62a18b6f
parent592187b22eb39d1ac12833c8d3cd48413fce3c50 (diff)
downloadmtools-d85958f8ab53f637930129e510a68ba594e6b5b8.tar.gz
mtools-d85958f8ab53f637930129e510a68ba594e6b5b8.tar.bz2
mtools-d85958f8ab53f637930129e510a68ba594e6b5b8.zip
fat bits
[kevin.thierry: update fix for version 4.0.18] Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
-rw-r--r--fat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fat.c b/fat.c
index 16e32ab..6a1ac27 100644
--- a/fat.c
+++ b/fat.c
@@ -719,7 +719,7 @@ static int old_fat_read(Fs_t *This, union bootsector *boot,
if(check_media_type(This,boot, tot_sectors))
return -1;
- if(This->num_clus >= FAT12) {
+ if(This->num_clus >= FAT12 || This->fat_bits == 16) {
set_fat16(This);
/* third FAT byte must be 0xff */
if(!mtools_skip_check && readByte(This, 3) != 0xff)