From 4b3d17e132fe9c88162ff46c1d33f0438c1ba67d Mon Sep 17 00:00:00 2001 From: Jonas Suhr Christensen Date: Tue, 23 Sep 2014 18:06:15 +0200 Subject: Testing file attribute filter on windows XP. --- plugingui/directory.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugingui') diff --git a/plugingui/directory.cc b/plugingui/directory.cc index 141d944..ce695dc 100644 --- a/plugingui/directory.cc +++ b/plugingui/directory.cc @@ -322,9 +322,9 @@ bool Directory::isHidden(std::string path) #ifdef WIN32 DWORD fattribs = GetFileAttributes(path.c_str()); if(fattribs & FILE_ATTRIBUTE_HIDDEN) { - return false; + return true; } - return true; + return false; #else unsigned pos = path.find_last_of("/\\"); std::string entry = path.substr(pos+1); -- cgit v1.2.3