mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
WebParser: Fixed wrong string length since a0113cc
This commit is contained in:
parent
da34fc1fa8
commit
2ea8710f58
@ -911,7 +911,7 @@ void ParseData(MeasureData* measure, LPCSTR parseData, DWORD dwSize)
|
|||||||
if (measure->codepage == 1200) // 1200 = UTF-16LE
|
if (measure->codepage == 1200) // 1200 = UTF-16LE
|
||||||
{
|
{
|
||||||
// Must convert the data to utf8
|
// Must convert the data to utf8
|
||||||
utf8Data = StringUtil::NarrowUTF8((LPCWSTR)parseData, dwSize);
|
utf8Data = StringUtil::NarrowUTF8((LPCWSTR)parseData, dwSize / 2);
|
||||||
parseData = utf8Data.c_str();
|
parseData = utf8Data.c_str();
|
||||||
dwSize = utf8Data.length();
|
dwSize = utf8Data.length();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user