!331 LOSCFG_FS_FAT_VIRTUAL_PARTITION宏开关错误作用域引起的FATFS功能错误

Merge pull request !331 from Far/master
This commit is contained in:
openharmony_ci 2021-06-21 13:13:06 +08:00 committed by Gitee
commit e5a3ee6f33
1 changed files with 1 additions and 1 deletions

View File

@ -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;