Erich Hoover : hhctrl.ocx: Use HTML decoder for the index.

Alexandre Julliard julliard at winehq.org
Fri Jun 22 10:52:04 CDT 2012


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

Author: Erich Hoover <ehoover at mines.edu>
Date:   Wed Jun 20 14:31:15 2012 -0600

hhctrl.ocx: Use HTML decoder for the index.

---

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

diff --git a/dlls/hhctrl.ocx/index.c b/dlls/hhctrl.ocx/index.c
index aa73bc9..3b5053a 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.




More information about the wine-cvs mailing list