From 60f7fbe06e1cb254ff63e03585cb4c42994b5434 Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Sat, 28 May 2005 17:35:08 +0000 Subject: [PATCH] fix pattern matching svn path=/trunk/; revision=15595 --- reactos/subsys/system/winefile/winefile.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/reactos/subsys/system/winefile/winefile.c b/reactos/subsys/system/winefile/winefile.c index 2bab526543b..3b6276bba1d 100644 --- a/reactos/subsys/system/winefile/winefile.c +++ b/reactos/subsys/system/winefile/winefile.c @@ -2562,15 +2562,16 @@ static int insert_entries(Pane* pane, Entry* dir, LPCTSTR pattern, int filter_fl (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;