mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-02-08 03:03:07 +08:00
Merge pull request #419 from AubrCool/fix-dfs.fd_is_openError
Correct dfs fd_is_open search index error
This commit is contained in:
@@ -234,7 +234,11 @@ int fd_is_open(const char *pathname)
|
||||
mountpath = fullpath + strlen(fs->path);
|
||||
|
||||
dfs_lock();
|
||||
#ifdef DFS_USING_STDIO
|
||||
for (index = 3; index < DFS_FD_MAX+3; index++)
|
||||
#else
|
||||
for (index = 0; index < DFS_FD_MAX; index++)
|
||||
#endif
|
||||
{
|
||||
fd = &(fd_table[index]);
|
||||
if (fd->fs == RT_NULL)
|
||||
|
||||
Reference in New Issue
Block a user