From 544980af2a78f00aa7e4e29f1a3ac6561e1a95a7 Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 14 Jul 2011 19:47:31 +0000 Subject: Fix NT stype upper/lower case FAT 8.3 filename git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3784 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/fs/fat/fs_fat32dirent.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'nuttx/fs') diff --git a/nuttx/fs/fat/fs_fat32dirent.c b/nuttx/fs/fat/fs_fat32dirent.c index 454ec1052..9eb21a531 100644 --- a/nuttx/fs/fat/fs_fat32dirent.c +++ b/nuttx/fs/fat/fs_fat32dirent.c @@ -302,7 +302,7 @@ static inline int fat_parsesfname(const char **path, /* Clear lower case name bit in mask*/ - ntlcenable &= FATNTRES_LCNAME; + ntlcenable &= ~FATNTRES_LCNAME; } else { @@ -323,7 +323,7 @@ static inline int fat_parsesfname(const char **path, /* Clear lower case extension in mask */ - ntlcenable &= FATNTRES_LCNAME; + ntlcenable &= ~FATNTRES_LCEXT; } } #endif @@ -390,7 +390,7 @@ static inline int fat_parsesfname(const char **path, /* Set lower case extension bit */ - ntlcfound |= FATNTRES_LCNAME; + ntlcfound |= FATNTRES_LCEXT; } #endif #endif /* CONFIG_FAT_LFN && !CONFIG_FAT_LCNAMES */ @@ -1649,7 +1649,7 @@ static int fat_putsfname(struct fat_mountpt_s *fs, struct fat_dirinfo_s *dirinfo uint8_t *direntry = &fs->fs_buffer[dirinfo->fd_seq.ds_offset]; memcpy(&direntry[DIR_NAME], dirinfo->fd_name, DIR_MAXFNAME); -#ifdef CONFIG_FLAT_LCNAMES +#ifdef CONFIG_FAT_LCNAMES DIR_PUTNTRES(direntry, dirinfo->fd_ntflags); #else DIR_PUTNTRES(direntry, 0); -- cgit v1.2.3