fixed stupid stat bug reported by rich
This was SVN commit r228.
This commit is contained in:
parent
c6054e9c4f
commit
44d4621ea4
@ -118,7 +118,7 @@ int stat(const char* fn, struct stat* s)
|
||||
return -1;
|
||||
|
||||
// dir
|
||||
if(fad.dwFileAttributes == FILE_ATTRIBUTE_DIRECTORY)
|
||||
if(fad.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
|
||||
s->st_mode = S_IFDIR;
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user