mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
[SHELLFIND] Fix directory search upon non-empty word/phrase query (#3130)
If the search phrase was not empty, it must not match the directory. CORE-17244
This commit is contained in:
parent
f562f9c5c6
commit
2dd4f8714d
1 changed files with 3 additions and 2 deletions
|
@ -280,8 +280,9 @@ static UINT RecursiveFind(LPCWSTR lpPath, _SearchData *pSearchData)
|
|||
if (FindData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
|
||||
{
|
||||
CStringW status;
|
||||
if (FileNameMatch(FindData.cFileName, pSearchData)
|
||||
&& AttribHiddenMatch(FindData.dwFileAttributes, pSearchData))
|
||||
if (pSearchData->szQueryW.IsEmpty() &&
|
||||
FileNameMatch(FindData.cFileName, pSearchData) &&
|
||||
AttribHiddenMatch(FindData.dwFileAttributes, pSearchData))
|
||||
{
|
||||
PostMessageW(pSearchData->hwnd, WM_SEARCH_ADD_RESULT, 0, (LPARAM) StrDupW(szPath));
|
||||
uTotalFound++;
|
||||
|
|
Loading…
Reference in a new issue