fix compiler error

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@805 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
qiuyiuestc 2010-07-19 17:21:04 +00:00
parent 26aa51e8a6
commit f24c52e1b0
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}