File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
storage/filesystem/fat/ChaN Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -537,7 +537,7 @@ static WCHAR LfnBuf[FF_MAX_LFN + 1]; /* LFN working buffer */
537
537
#elif FF_USE_LFN == 3 /* LFN enabled with dynamic working buffer on the heap */
538
538
#if FF_FS_EXFAT
539
539
#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 ); }
541
541
#define FREE_NAMBUF () ff_memfree(lfn)
542
542
#else
543
543
#define DEF_NAMBUF WCHAR *lfn; /* Pointer to LFN working buffer */
@@ -555,6 +555,7 @@ static WCHAR LfnBuf[FF_MAX_LFN + 1]; /* LFN working buffer */
555
555
556
556
557
557
558
+
558
559
/* --------------------------------*/
559
560
/* Code conversion tables */
560
561
/* --------------------------------*/
You can’t perform that action at this time.
0 commit comments