Commit 425c30f5 authored by Erich Hoover's avatar Erich Hoover Committed by Alexandre Julliard

hhctrl.ocx: Fix a NULL dereference mistake in the Contents tab.

parent 207ce6fc
......@@ -419,7 +419,6 @@ static LRESULT OnTopicChange(HHInfo *info, void *user_data)
}
citer = citer->parent;
}
chmfile = citer->merge.chm_file;
break;
case TAB_INDEX:
iiter = (IndexItem *) user_data;
......@@ -458,6 +457,12 @@ static LRESULT OnTopicChange(HHInfo *info, void *user_data)
return 0;
}
if(!chmfile)
{
FIXME("No help file found for this item!\n");
return 0;
}
TRACE("name %s loal %s\n", debugstr_w(name), debugstr_w(local));
NavigateToChm(info, chmfile, local);
......
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