From 2ea8710f58f20ba658008978eb0f24a1ad99c160 Mon Sep 17 00:00:00 2001 From: spx Date: Mon, 4 Feb 2013 13:20:03 +0900 Subject: [PATCH] WebParser: Fixed wrong string length since a0113cc --- Plugins/PluginWebParser/WebParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/PluginWebParser/WebParser.cpp b/Plugins/PluginWebParser/WebParser.cpp index 5c83dc83..c368abdd 100644 --- a/Plugins/PluginWebParser/WebParser.cpp +++ b/Plugins/PluginWebParser/WebParser.cpp @@ -911,7 +911,7 @@ void ParseData(MeasureData* measure, LPCSTR parseData, DWORD dwSize) if (measure->codepage == 1200) // 1200 = UTF-16LE { // Must convert the data to utf8 - utf8Data = StringUtil::NarrowUTF8((LPCWSTR)parseData, dwSize); + utf8Data = StringUtil::NarrowUTF8((LPCWSTR)parseData, dwSize / 2); parseData = utf8Data.c_str(); dwSize = utf8Data.length(); }