aboutsummaryrefslogtreecommitdiffstats
path: root/src/fs/FileInfo.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/FileInfo.hxx')
-rw-r--r--src/fs/FileInfo.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fs/FileInfo.hxx b/src/fs/FileInfo.hxx
index ad0fb4064..7b272568f 100644
--- a/src/fs/FileInfo.hxx
+++ b/src/fs/FileInfo.hxx
@@ -65,7 +65,8 @@ class FileInfo {
public:
bool IsRegular() const {
#ifdef WIN32
- return data.dwFileAttributes & FILE_ATTRIBUTE_NORMAL;
+ return (data.dwFileAttributes &
+ (FILE_ATTRIBUTE_DIRECTORY|FILE_ATTRIBUTE_DEVICE)) == 0;
#else
return S_ISREG(st.st_mode);
#endif