From f24c52e1b092fe6d50d9ba1e28fc5414f89c4e50 Mon Sep 17 00:00:00 2001 From: qiuyiuestc Date: Mon, 19 Jul 2010 17:21:04 +0000 Subject: [PATCH] fix compiler error git-svn-id: https://rt-thread.googlecode.com/svn/trunk@805 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- components/rtgui/widgets/filelist_view.c | 4 ++-- 1 file 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; } }