Nikolay Sivov : xmllite: Make another read attempt if we don' t have enough data initially.
Alexandre Julliard
julliard at winehq.org
Mon Mar 11 16:24:51 CDT 2013
Module: wine
Branch: master
Commit: 88d7b66be2716e8c8374d7a45bd823f7e6430026
URL: http://source.winehq.org/git/wine.git/?a=commit;h=88d7b66be2716e8c8374d7a45bd823f7e6430026
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Mon Mar 11 08:45:53 2013 +0400
xmllite: Make another read attempt if we don't have enough data initially.
---
dlls/xmllite/reader.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/dlls/xmllite/reader.c b/dlls/xmllite/reader.c
index 688497c..16734d4 100644
--- a/dlls/xmllite/reader.c
+++ b/dlls/xmllite/reader.c
@@ -610,7 +610,12 @@ static HRESULT readerinput_detectencoding(xmlreaderinput *readerinput, xml_encod
*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
first chunk already */
More information about the wine-cvs
mailing list