Browse Source

fix compiler error

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@805 bbd45198-f89e-11dd-88c7-29a3b14d5316
qiuyiuestc 15 years ago
parent
commit
f24c52e1b0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      components/rtgui/widgets/filelist_view.c

+ 2 - 2
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;
 			}
 		}