forked from len0rd/rockbox
When reading a dir, only set the attribute information we care about in the dirent structure.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3754 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2f27a78ffa
commit
4872bfee5f
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ struct dirent *readdir (
|
||||||
return 0;
|
return 0;
|
||||||
memcpy (dir->fd.d_name, fd.name, 256);
|
memcpy (dir->fd.d_name, fd.name, 256);
|
||||||
|
|
||||||
dir->fd.attribute = fd.attrib ;
|
dir->fd.attribute = fd.attrib & 0x3f;
|
||||||
dir->fd.size = fd.size;
|
dir->fd.size = fd.size;
|
||||||
dir->fd.startcluster = 0 ;
|
dir->fd.startcluster = 0 ;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue