From 5440fde24213a186aacaf115c87ac740fea88053 Mon Sep 17 00:00:00 2001 From: Christopher Williams Date: Wed, 10 May 2017 19:27:06 -0700 Subject: [PATCH] R0.12c patch 1 March 11, 2017 On the exFAT volume, FAT entry can be collapsed when write or lseek operation to the existing file is performed. (Appeared at R0.12c) --- src/ff.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ff.c b/src/ff.c index faac347..86cdf23 100644 --- a/src/ff.c +++ b/src/ff.c @@ -3439,6 +3439,7 @@ FRESULT f_open ( fp->obj.sclust = ld_dword(fs->dirbuf + XDIR_FstClus); /* Get object allocation info */ fp->obj.objsize = ld_qword(fs->dirbuf + XDIR_FileSize); fp->obj.stat = fs->dirbuf[XDIR_GenFlags] & 2; + fp->obj.n_frag = 0; } else #endif {