提交 f24c52e1 编写于 作者: qiuyiuestc's avatar qiuyiuestc

fix compiler error

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@805 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 26aa51e8
......@@ -802,7 +802,7 @@ void rtgui_filelist_view_set_directory(rtgui_filelist_view_t* view, const char*
rt_sprintf(fullpath, "%s%s", directory, dirent->d_name);
stat(fullpath, &s);
if ( s.st_mode & S_IFDIR )
if ( s.parent.st_mode & S_IFDIR )
{
item->type = RTGUI_FITEM_DIR;
item->size = 0;
......@@ -810,7 +810,7 @@ void rtgui_filelist_view_set_directory(rtgui_filelist_view_t* view, const char*
else
{
item->type = RTGUI_FITEM_FILE;
item->size = s.st_size;
item->size = s.parent.st_size;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册