提交 eb898f69 编写于 作者: A Aubr.Cool

Correct dfs fd_is_open search index error

上级 19ee2c7e
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册