From dc482dfe14cde9417cf2606c69e7f6cea3cf4593 Mon Sep 17 00:00:00 2001 From: Erich Hoover Date: Wed, 20 Jun 2012 14:31:15 -0600 Subject: [PATCH] hhctrl.ocx: Use HTML decoder for the index. --- dlls/hhctrl.ocx/index.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/dlls/hhctrl.ocx/index.c b/dlls/hhctrl.ocx/index.c index aa73bc98d01..3b5053a0d30 100644 --- a/dlls/hhctrl.ocx/index.c +++ b/dlls/hhctrl.ocx/index.c @@ -66,7 +66,7 @@ static void parse_index_obj_node_param(IndexItem *item, const char *text) { const char *ptr; LPWSTR *param; - int len, wlen; + int len; ptr = get_attr(text, "name", &len); if(!ptr) { @@ -109,10 +109,7 @@ static void parse_index_obj_node_param(IndexItem *item, const char *text) return; } - wlen = MultiByteToWideChar(CP_ACP, 0, ptr, len, NULL, 0); - *param = heap_alloc((wlen+1)*sizeof(WCHAR)); - MultiByteToWideChar(CP_ACP, 0, ptr, len, *param, wlen); - (*param)[wlen] = 0; + *param = decode_html(ptr, len); } /* Parse the object tag corresponding to a list item.