diff --git a/exfat_core.c b/exfat_core.c index f6ea43e..d485141 100644 --- a/exfat_core.c +++ b/exfat_core.c @@ -1171,7 +1171,7 @@ s32 ffsGetStat(struct inode *inode, DIR_ENTRY_T *info) /* XXX this is very bad for exfat cuz name is already included in es. API should be revised */ p_fs->fs_func->get_uni_name_from_ext_entry(sb, &(fid->dir), fid->entry, uni_name.name); - if (*(uni_name.name) == 0x0) + if (*(uni_name.name) == 0x0 && p_fs->vol_type != EXFAT) get_uni_name_from_dos_entry(sb, (DOS_DENTRY_T *) ep, &uni_name, 0x1); nls_uniname_to_cstring(sb, info->Name, &uni_name); @@ -1556,7 +1556,7 @@ s32 ffsReadDir(struct inode *inode, DIR_ENTRY_T *dir_entry) *(uni_name.name) = 0x0; p_fs->fs_func->get_uni_name_from_ext_entry(sb, &dir, dentry, uni_name.name); - if (*(uni_name.name) == 0x0) + if (*(uni_name.name) == 0x0 && p_fs->vol_type != EXFAT) get_uni_name_from_dos_entry(sb, (DOS_DENTRY_T *) ep, &uni_name, 0x1); nls_uniname_to_cstring(sb, dir_entry->Name, &uni_name); buf_unlock(sb, sector);