]> git.sesse.net Git - vlc/commitdiff
* ahum. == on a mask instead of &
authorDerk-Jan Hartman <hartman@videolan.org>
Sun, 30 May 2004 18:20:57 +0000 (18:20 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Sun, 30 May 2004 18:20:57 +0000 (18:20 +0000)
modules/access/directory.c

index 93989589e22d996453cee13930c19753444d5a1b..2b9266d0953f53ffa97fe60477701b4971384225 100644 (file)
@@ -254,7 +254,7 @@ int ReadDir( playlist_t *p_playlist, char *psz_name , int i_mode, int *pi_positi
             stat( psz_uri, &stat_data );
             if( S_ISDIR(stat_data.st_mode) && i_mode != MODE_COLLAPSE )
 #elif defined( DT_DIR )
-            if( p_dir_content->d_type == DT_DIR && i_mode != MODE_COLLAPSE )
+            if( ( p_dir_content->d_type & DT_DIR ) && i_mode != MODE_COLLAPSE )
 #else
             if( 0 )
 #endif