diff options
-rw-r--r-- | uisimulator/win32/dir-win32.c | 6 |
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 |