1
0
forked from 0ad/0ad

fixed stupid stat bug reported by rich

This was SVN commit r228.
This commit is contained in:
janwas 2004-05-15 03:02:26 +00:00
parent c6054e9c4f
commit 44d4621ea4

View File

@ -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
{