From: Alex Henrie alexhenrie24@gmail.com
sizeof(IndexSubItem) is more clear than 2 * sizeof(void *) and it avoids any questions about struct padding. --- dlls/hhctrl.ocx/index.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/hhctrl.ocx/index.c b/dlls/hhctrl.ocx/index.c index 113daa9efc9..97781fc10a9 100644 --- a/dlls/hhctrl.ocx/index.c +++ b/dlls/hhctrl.ocx/index.c @@ -129,7 +129,7 @@ static IndexItem *parse_index_sitemap_object(HHInfo *info, stream_t *stream)
item = calloc(1, sizeof(IndexItem)); item->nItems = 0; - item->items = calloc(2, sizeof(void *)); + item->items = calloc(1, sizeof(IndexSubItem)); item->itemFlags = 0x11;
while(next_node(stream, &node)) {