forked from Mirrors/wine-wine
hhctrl.ocx: Fix a NULL dereference mistake in the Contents tab.
parent
207ce6fcb2
commit
425c30f544
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue