1
1
forked from 0ad/0ad

fix for bug#68. allows opening hidden or system dirs because on some machines, the Windows dir is marked as such.

This was SVN commit r2820.
This commit is contained in:
janwas 2005-09-30 15:24:03 +00:00
parent 19b66bf0ff
commit 99c6af533d

View File

@ -380,8 +380,11 @@ static bool is_normal_dir(const char* path)
if((fa & FILE_ATTRIBUTE_DIRECTORY) == 0)
return false;
// .. hidden or system attribute(s) set
if((fa & hs) != 0)
return false;
// this check is now disabled because wdetect's add_oal_dlls_in_dir
// needs to open the Windows system directory, which sometimes has
// these attributes set.
//if((fa & hs) != 0)
// return false;
return true;
}