FAT: Fix the check when listing deleted "." and ".." entries

This commit is contained in:
Christophe Grenier 2009-04-08 08:43:16 +02:00
parent 0632f445a8
commit aef8cae536

View file

@ -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]='_';