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

oldstable
Erich Hoover 2010-01-29 08:00:30 -07:00 committed by Alexandre Julliard
parent 207ce6fcb2
commit 425c30f544
1 changed files with 6 additions and 1 deletions

View File

@ -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);