Erich Hoover : hhctrl.ocx: Fix HTML Help crashing on non-chm files.

Alexandre Julliard julliard at winehq.org
Fri Dec 23 13:03:22 CST 2011


Module: wine
Branch: master
Commit: 4ce176af61596b7e18ef54b713a1306b1f49aa48
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4ce176af61596b7e18ef54b713a1306b1f49aa48

Author: Erich Hoover <ehoover at mines.edu>
Date:   Thu Dec 22 12:12:06 2011 -0700

hhctrl.ocx: Fix HTML Help crashing on non-chm files.

---

 dlls/hhctrl.ocx/index.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/hhctrl.ocx/index.c b/dlls/hhctrl.ocx/index.c
index f119bbc..aa73bc9 100644
--- a/dlls/hhctrl.ocx/index.c
+++ b/dlls/hhctrl.ocx/index.c
@@ -277,6 +277,7 @@ void ReleaseIndex(HHInfo *info)
     IndexItem *item = info->index, *next;
     int i;
 
+    if(!item) return;
     /* Note: item->merge is identical for all items, only free once */
     heap_free(item->merge.chm_file);
     heap_free(item->merge.chm_index);




More information about the wine-cvs mailing list