diff options
| author | bernard.xiong <[email protected]> | 2009-10-26 23:10:52 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2009-10-26 23:10:52 +0000 |
| commit | 0cab7ce3bc6b01cfa9c2111b821cf971bb120bb6 (patch) | |
| tree | c77a5fbae27cf0110dce541ee2cc68ab5e887a59 /filesystem/dfs/src | |
| parent | 5f878bb6a29ef3acd3087edd24992cfb9997d66f (diff) | |
elm chan's FAT is available.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@141 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'filesystem/dfs/src')
| -rw-r--r-- | filesystem/dfs/src/dfs_raw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/filesystem/dfs/src/dfs_raw.c b/filesystem/dfs/src/dfs_raw.c index 89cb8abd05..e87348572b 100644 --- a/filesystem/dfs/src/dfs_raw.c +++ b/filesystem/dfs/src/dfs_raw.c @@ -327,7 +327,7 @@ int dfile_raw_getdents(struct dfs_fd* fd, struct dfs_dirent* dirp, rt_size_t nby struct dfs_filesystem* fs;
/* parameter check */
- if (fd == RT_NULL || fd->type != FT_REGULAR) return -DFS_STATUS_EINVAL;
+ if (fd == RT_NULL || fd->type != FT_DIRECTORY) return -DFS_STATUS_EINVAL;
fs = (struct dfs_filesystem*) fd->fs;
if (fs->ops->getdents != RT_NULL) return fs->ops->getdents(fd, dirp, nbytes);
|
