Skip to content

Commit 952c286

Browse files
authored
Merge pull request ARMmbed#15415 from wdx04/fix_exfat
fix compiling errors of FATFileSystem when exFAT was enabled
2 parents 48a89f1 + 3c17881 commit 952c286

File tree

1 file changed

+2
-1
lines changed
  • storage/filesystem/fat/ChaN

1 file changed

+2
-1
lines changed

storage/filesystem/fat/ChaN/ff.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ static WCHAR LfnBuf[FF_MAX_LFN + 1]; /* LFN working buffer */
537537
#elif FF_USE_LFN == 3 /* LFN enabled with dynamic working buffer on the heap */
538538
#if FF_FS_EXFAT
539539
#define DEF_NAMBUF WCHAR *lfn; /* Pointer to LFN working buffer and directory entry block scratchpad buffer */
540-
#define INIT_NAMBUF(fs) { lfn = ff_memalloc((FF_MAX_LFN+1)*2 + MAXDIRB(FF_MAX_LFN)); if (!lfn) LEAVE_FF(fs, FR_NOT_ENOUGH_CORE); (fs)->lfnbuf = lfn; (fs)->dirbuf = (BYTE*)(lfn+FF_MAX_LFN+1); }
540+
#define INIT_NAMBUF(fs) { lfn = (WCHAR *)(ff_memalloc((FF_MAX_LFN+1)*2 + MAXDIRB(FF_MAX_LFN))); if (!lfn) LEAVE_FF(fs, FR_NOT_ENOUGH_CORE); (fs)->lfnbuf = lfn; (fs)->dirbuf = (BYTE*)(lfn+FF_MAX_LFN+1); }
541541
#define FREE_NAMBUF() ff_memfree(lfn)
542542
#else
543543
#define DEF_NAMBUF WCHAR *lfn; /* Pointer to LFN working buffer */
@@ -555,6 +555,7 @@ static WCHAR LfnBuf[FF_MAX_LFN + 1]; /* LFN working buffer */
555555

556556

557557

558+
558559
/*--------------------------------*/
559560
/* Code conversion tables */
560561
/*--------------------------------*/

0 commit comments

Comments
 (0)