[Wine-patches] hhctl.ocx: change quote escapements (eterbug #2948)

Konstantin Kondratyuk =?iso-8859-1?q?kondratyuk_=CE=C1_etersoft=2Eru?=
Ср Апр 22 15:24:02 MSD 2009


-- 
Best regards,
Konstantin Kondratyuk.
----------- следующая часть -----------
From 4c9a95a3be530e84353e31cdf3fd60d3e6cb4e16 Mon Sep 17 00:00:00 2001
From: Konstantin Kondratyuk <kondratyuk на etersoft.ru>
Date: Wed, 22 Apr 2009 15:18:06 +0400
Subject: [PATCH] hhctl.ocx: change quote escapements (eterbug #2948)

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

diff --git a/dlls/hhctrl.ocx/content.c b/dlls/hhctrl.ocx/content.c
index 4fc0176..33f07f4 100644
--- a/dlls/hhctrl.ocx/content.c
+++ b/dlls/hhctrl.ocx/content.c
@@ -252,6 +252,8 @@ static ContentItem *parse_sitemap_object(HHInfo *info, stream_t *stream, Content
 {
     strbuf_t node, node_name;
     ContentItem *item;
+    char str_quot[] = "&quot;";
+    char* res; 
 
     *insert_type = INSERT_NEXT;
 
@@ -265,6 +267,12 @@ static ContentItem *parse_sitemap_object(HHInfo *info, stream_t *stream, Content
 
         TRACE("%s\n", node.buf);
 
+        while((res = strstr(node.buf, str_quot)))
+        {
+            res[0] = '\'';
+            strcpy(res+1, res + strlen(str_quot));
+        }
+
         if(!strcasecmp(node_name.buf, "/object"))
             break;
         if(!strcasecmp(node_name.buf, "param"))
-- 
1.6.1.3.GIT



Подробная информация о списке рассылки Wine-patches