fix pattern matching
Modified: trunk/reactos/subsys/system/winefile/winefile.c

Modified: trunk/reactos/subsys/system/winefile/winefile.c
--- trunk/reactos/subsys/system/winefile/winefile.c	2005-05-28 17:23:33 UTC (rev 15594)
+++ trunk/reactos/subsys/system/winefile/winefile.c	2005-05-28 17:35:08 UTC (rev 15595)
@@ -2562,15 +2562,16 @@
 					(entry->data.cFileName[1]==TEXT('.') && entry->data.cFileName[2]==TEXT('\0')))
 					continue;
 
-			if (pattern)
-				if (!pattern_match(entry->data.cFileName, pattern))
-					continue;
-
 			/* filter directories in right pane */
 			if (!pane->treePane && !(filter_flags&TF_DIRECTORIES))
 				continue;
 		}
 
+		/* filter using the file name pattern */
+		if (pattern)
+			if (!pattern_match(entry->data.cFileName, pattern))
+				continue;
+
 		/* filter system and hidden files */
 		if (!(filter_flags&TF_HIDDEN) && (entry->data.dwFileAttributes&(FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_SYSTEM)))
 			continue;