提交 e7fb6e7b 编写于 作者: B bernard.xiong

Improve the Device File System of the POSIX compatibility

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1016 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 b4a98e44
......@@ -730,7 +730,7 @@ void rtgui_filelist_view_set_directory(rtgui_filelist_view_t* view, const char*
if (directory != RT_NULL)
{
DIR* dir;
struct _stat s;
struct stat s;
rt_uint32_t index;
struct dirent* dirent;
......@@ -793,7 +793,7 @@ void rtgui_filelist_view_set_directory(rtgui_filelist_view_t* view, const char*
item = &(view->items[index]);
item->name = rt_strdup(dirent->d_name);
rt_memset(&s, 0, sizeof(struct _stat));
rt_memset(&s, 0, sizeof(struct stat));
/* build full path for the file */
if (directory[strlen(directory) - 1] != PATH_SEPARATOR)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册