From 44d4621ea4d7598ddaec21216b97efae2566b471 Mon Sep 17 00:00:00 2001 From: janwas Date: Sat, 15 May 2004 03:02:26 +0000 Subject: [PATCH] fixed stupid stat bug reported by rich This was SVN commit r228. --- source/lib/sysdep/win/wposix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/lib/sysdep/win/wposix.cpp b/source/lib/sysdep/win/wposix.cpp index 34cde82b88..19354d61ec 100755 --- a/source/lib/sysdep/win/wposix.cpp +++ b/source/lib/sysdep/win/wposix.cpp @@ -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 {