summaryrefslogtreecommitdiff
path: root/uisimulator/win32/dir-win32.c
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 /uisimulator/win32/dir-win32.c
parent9566349db6350182c6b2b9c4dac5d8bfd20c8746 (diff)
add attribute and size to readdir
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@503 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/win32/dir-win32.c')
-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 (
if (_findnext (dir->handle, &fd) == -1)
return 0;
memcpy (dir->fd.d_name, fd.name, 256);
+
+ dir->fd.attribute = fd.attrib ;
+ dir->fd.size = fd.size;
+ dir->fd.startcluster = 0 ;
+
+
return &dir->fd;
} \ No newline at end of file