!331 LOSCFG_FS_FAT_VIRTUAL_PARTITION宏开关错误作用域引起的FATFS功能错误
Merge pull request !331 from Far/master
This commit is contained in:
commit
e5a3ee6f33
|
@ -293,12 +293,12 @@ static FRESULT init_cluster(DIR *dp_new, FATFS *fs, int type, const char *target
|
||||||
#else
|
#else
|
||||||
PARENTFS(fs)->winsect = sect++;
|
PARENTFS(fs)->winsect = sect++;
|
||||||
PARENTFS(fs)->wflag = 1;
|
PARENTFS(fs)->wflag = 1;
|
||||||
|
#endif
|
||||||
result = sync_window(fs);
|
result = sync_window(fs);
|
||||||
if (result != FR_OK) {
|
if (result != FR_OK) {
|
||||||
remove_chain(&(dp_new->obj), *clust, 0);
|
remove_chain(&(dp_new->obj), *clust, 0);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
if (type == AM_LNK) {
|
if (type == AM_LNK) {
|
||||||
/* No need to clean the rest sectors of the cluster for symlink */
|
/* No need to clean the rest sectors of the cluster for symlink */
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue