fix dfs_elm_lseek issue
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1496 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
8e8fa0035d
commit
36e1c5ab04
|
@ -386,7 +386,7 @@ int dfs_elm_flush(struct dfs_fd* file)
|
|||
int dfs_elm_lseek(struct dfs_fd* file, rt_off_t offset)
|
||||
{
|
||||
FRESULT result;
|
||||
if (file->type == DFS_DT_REG)
|
||||
if (file->type == FT_REGULAR)
|
||||
{
|
||||
FIL* fd;
|
||||
|
||||
|
@ -401,7 +401,7 @@ int dfs_elm_lseek(struct dfs_fd* file, rt_off_t offset)
|
|||
return fd->fptr;
|
||||
}
|
||||
}
|
||||
else if (file->type == DFS_DT_DIR)
|
||||
else if (file->type == FT_DIRECTORY)
|
||||
{
|
||||
/* which is a directory */
|
||||
DIR* dir;
|
||||
|
|
Loading…
Reference in New Issue