summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorqiuyiuestc <[email protected]>2010-07-19 17:21:04 +0000
committerqiuyiuestc <[email protected]>2010-07-19 17:21:04 +0000
commitf24c52e1b092fe6d50d9ba1e28fc5414f89c4e50 (patch)
tree99be04ae739cbadcfe4763eb287b0457eff695fd /components
parent26aa51e8a6de6601a480797b09a2c10f39845338 (diff)
fix compiler error
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@805 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components')
-rw-r--r--components/rtgui/widgets/filelist_view.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/rtgui/widgets/filelist_view.c b/components/rtgui/widgets/filelist_view.c
index 90a0c9e672..1a8108b196 100644
--- a/components/rtgui/widgets/filelist_view.c
+++ b/components/rtgui/widgets/filelist_view.c
@@ -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;
}
}