Commit 687a2aea authored by Erich Hoover's avatar Erich Hoover Committed by Alexandre Julliard

hhctrl.ocx: Fix HTML Help Index tab with alternative 'keyword' style.

parent a0f53e7d
......@@ -36,6 +36,12 @@ static void fill_index_tree(HWND hwnd, IndexItem *item)
while(item) {
TRACE("tree debug: %s\n", debugstr_w(item->keyword));
if(!item->keyword)
{
FIXME("HTML Help index item has no keyword.\n");
item = item->next;
continue;
}
memset(&lvi, 0, sizeof(lvi));
lvi.iItem = index++;
lvi.mask = LVIF_TEXT|LVIF_PARAM;
......@@ -79,6 +85,12 @@ static void parse_index_obj_node_param(IndexItem *item, const char *text)
}
if(!strncasecmp("keyword", ptr, len)) {
param = &item->keyword;
}else if(!item->keyword && !strncasecmp("name", ptr, len)) {
/* Some HTML Help index files use an additional "name" parameter
* rather than the "keyword" parameter. In this case, the first
* occurance of the "name" parameter is the keyword.
*/
param = &item->keyword;
}else if(!strncasecmp("name", ptr, len)) {
item->itemFlags |= 0x01;
param = &item->items[item->nItems-1].name;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment