From ef206b3a279efc45b861f8404238b27bb36b71e6 Mon Sep 17 00:00:00 2001 From: Themaister Date: Sat, 14 Jan 2012 01:42:51 +0100 Subject: [PATCH] Fix directory detection. --- file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file.c b/file.c index f1d9c61ae6..a32bbc3705 100644 --- a/file.c +++ b/file.c @@ -936,7 +936,7 @@ void dir_list_free(char **dir_list) bool path_is_directory(const char *path) { #ifdef _WIN32 - return GetFileAttributes(path) == FILE_ATTRIBUTE_DIRECTORY; + return GetFileAttributes(path) & FILE_ATTRIBUTE_DIRECTORY; #elif defined(__CELLOS_LV2__) || defined(XENON) // Dummy (void)path;