FAT: Fix the check when listing deleted "." and ".." entries
This commit is contained in:
parent
0632f445a8
commit
aef8cae536
1 changed files with 1 additions and 1 deletions
|
@ -242,7 +242,7 @@ RecEnd:
|
|||
status=FILE_STATUS_DELETED;
|
||||
if((de->attr&ATTR_DIR)==ATTR_DIR &&
|
||||
((dir_list==NULL && unicode[1]=='\0') ||
|
||||
(dir_list->next==NULL && unicode[1]=='.' && unicode[2]=='\0')))
|
||||
(dir_list!=NULL && dir_list->next==NULL && unicode[1]=='.' && unicode[2]=='\0')))
|
||||
unicode[0]='.'; /* "." and ".." are the first two entries */
|
||||
else
|
||||
unicode[0]='_';
|
||||
|
|
Loading…
Reference in a new issue