summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-11-05 11:27:36 -0800
committerAnas Nashif <anas.nashif@intel.com>2012-11-05 11:27:36 -0800
commitf6b38c9c22c040ea696b88c0ef8c9d65bd17f39a (patch)
tree2ace0e648ea032651e17a28de1956cafbe2916f3
parent74cd6220ceced34c48a463d2169602e8389ed72b (diff)
downloadmtools-f6b38c9c22c040ea696b88c0ef8c9d65bd17f39a.tar.gz
mtools-f6b38c9c22c040ea696b88c0ef8c9d65bd17f39a.tar.bz2
mtools-f6b38c9c22c040ea696b88c0ef8c9d65bd17f39a.zip
fat bits
-rw-r--r--fat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fat.c b/fat.c
index f6d732e..dba7dac 100644
--- a/fat.c
+++ b/fat.c
@@ -722,7 +722,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 || config_fat_bits == 16) {
set_fat16(This);
/* third FAT byte must be 0xff */
if(!mtools_skip_check && readByte(This, 3) != 0xff)