From 393c232b053c829a477192734214393edc0f67dc Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Wed, 5 Oct 2011 11:19:43 -0500 Subject: [PATCH] msxml3: Support setting unlimited xml stream length for a reader. --- dlls/msxml3/saxreader.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/dlls/msxml3/saxreader.c b/dlls/msxml3/saxreader.c index 8498b8dbb1f..857083a9ca5 100644 --- a/dlls/msxml3/saxreader.c +++ b/dlls/msxml3/saxreader.c @@ -2383,7 +2383,14 @@ static HRESULT internal_putProperty( return S_OK; } - FIXME("(%p)->(%s): unsupported property\n", This, debugstr_w(prop)); + if(!memcmp(prop, PropertyMaxXMLSizeW, sizeof(PropertyMaxXMLSizeW))) + { + if (V_VT(&value) == VT_I4 && V_I4(&value) == 0) return S_OK; + FIXME("(%p)->(%s): max-xml-size unsupported\n", This, debugstr_variant(&value)); + return E_NOTIMPL; + } + + FIXME("(%p)->(%s:%s): unsupported property\n", This, debugstr_w(prop), debugstr_variant(&value)); if(!memcmp(prop, PropertyCharsetW, sizeof(PropertyCharsetW))) return E_NOTIMPL; @@ -2397,9 +2404,6 @@ static HRESULT internal_putProperty( if(!memcmp(prop, PropertyMaxElementDepthW, sizeof(PropertyMaxElementDepthW))) return E_NOTIMPL; - if(!memcmp(prop, PropertyMaxXMLSizeW, sizeof(PropertyMaxXMLSizeW))) - return E_NOTIMPL; - if(!memcmp(prop, PropertySchemaDeclHandlerW, sizeof(PropertySchemaDeclHandlerW))) return E_NOTIMPL;