hhctrl.ocx: Fix a NULL dereference mistake in the Contents tab.
diff --git a/dlls/hhctrl.ocx/help.c b/dlls/hhctrl.ocx/help.c
index e7b7a64..e8121e7 100644
--- a/dlls/hhctrl.ocx/help.c
+++ b/dlls/hhctrl.ocx/help.c
@@ -419,7 +419,6 @@
}
citer = citer->parent;
}
- chmfile = citer->merge.chm_file;
break;
case TAB_INDEX:
iiter = (IndexItem *) user_data;
@@ -458,6 +457,12 @@
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);