Commit 88d7b66b authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

xmllite: Make another read attempt if we don't have enough data initially.

parent 93775145
...@@ -610,7 +610,12 @@ static HRESULT readerinput_detectencoding(xmlreaderinput *readerinput, xml_encod ...@@ -610,7 +610,12 @@ static HRESULT readerinput_detectencoding(xmlreaderinput *readerinput, xml_encod
*enc = XmlEncoding_Unknown; *enc = XmlEncoding_Unknown;
if (buffer->written <= 3) return MX_E_INPUTEND; if (buffer->written <= 3)
{
HRESULT hr = readerinput_growraw(readerinput);
if (FAILED(hr)) return hr;
if (buffer->written <= 3) return MX_E_INPUTEND;
}
/* try start symbols if we have enough data to do that, input buffer should contain /* try start symbols if we have enough data to do that, input buffer should contain
first chunk already */ first chunk already */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment