summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Meyer <calpefrosch@rockbox.org>2002-05-08 07:06:16 +0000
committerStefan Meyer <calpefrosch@rockbox.org>2002-05-08 07:06:16 +0000
commitbdc3ff0b084ce46cbdcfb14d16e1a915f8092fd7 (patch)
treedeb929d7c74732be05c3f7c05697ce9720234bb6
parent9566349db6350182c6b2b9c4dac5d8bfd20c8746 (diff)
downloadrockbox-bdc3ff0b084ce46cbdcfb14d16e1a915f8092fd7.tar.gz
rockbox-bdc3ff0b084ce46cbdcfb14d16e1a915f8092fd7.zip
add attribute and size to readdir
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@503 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--uisimulator/win32/dir-win32.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/uisimulator/win32/dir-win32.c b/uisimulator/win32/dir-win32.c
index 3c31c89100..44663b908e 100644
--- a/uisimulator/win32/dir-win32.c
+++ b/uisimulator/win32/dir-win32.c
@@ -82,5 +82,11 @@ struct dirent *readdir (
82 if (_findnext (dir->handle, &fd) == -1) 82 if (_findnext (dir->handle, &fd) == -1)
83 return 0; 83 return 0;
84 memcpy (dir->fd.d_name, fd.name, 256); 84 memcpy (dir->fd.d_name, fd.name, 256);
85
86 dir->fd.attribute = fd.attrib ;
87 dir->fd.size = fd.size;
88 dir->fd.startcluster = 0 ;
89
90
85 return &dir->fd; 91 return &dir->fd;
86} \ No newline at end of file 92} \ No newline at end of file