mirror of
https://github.com/reactos/wine.git
synced 2025-02-15 10:29:19 +00:00
hhctrl.ocx: Also take basename of folders when searching.
Signed-off-by: Vincent Povirk <vincent@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
fedc26ec3f
commit
a16344ca19
@ -167,14 +167,14 @@ static SearchItem *SearchCHM_Storage(SearchItem *item, IStorage *pStorage,
|
||||
}
|
||||
while (IEnumSTATSTG_Next(elem, 1, &entries, &retr) == NOERROR)
|
||||
{
|
||||
filename = entries.pwcsName;
|
||||
while(strchrW(filename, '/'))
|
||||
filename = strchrW(filename, '/')+1;
|
||||
switch(entries.type) {
|
||||
case STGTY_STORAGE:
|
||||
item = SearchCHM_Folder(item, pStorage, entries.pwcsName, needle);
|
||||
item = SearchCHM_Folder(item, pStorage, filename, needle);
|
||||
break;
|
||||
case STGTY_STREAM:
|
||||
filename = entries.pwcsName;
|
||||
while(strchrW(filename, '/'))
|
||||
filename = strchrW(filename, '/')+1;
|
||||
if(strstrW(filename, szHTMext))
|
||||
{
|
||||
WCHAR *title = SearchCHM_File(pStorage, filename, needle);
|
||||
|
Loading…
x
Reference in New Issue
Block a user