diff --git a/fs/fat/os_adapt/fatfs.c b/fs/fat/os_adapt/fatfs.c index 952d989dba080ffdbc40efbaed27e3086ad36b26..dc5070a9a4d1ad10a4390ac2580f8d204f4bcd2a 100644 --- a/fs/fat/os_adapt/fatfs.c +++ b/fs/fat/os_adapt/fatfs.c @@ -293,12 +293,12 @@ static FRESULT init_cluster(DIR *dp_new, FATFS *fs, int type, const char *target #else PARENTFS(fs)->winsect = sect++; PARENTFS(fs)->wflag = 1; +#endif result = sync_window(fs); if (result != FR_OK) { remove_chain(&(dp_new->obj), *clust, 0); return result; } -#endif if (type == AM_LNK) { /* No need to clean the rest sectors of the cluster for symlink */ break;