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 */
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/* --------------------------------*/
You can’t perform that action at this time.
0 commit comments