提交 e5a3ee6f 编写于 作者: O openharmony_ci 提交者: Gitee

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

Merge pull request !331 from Far/master
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册