From 5f68f3710c90e65b4e6182bd3079c0cbc35a502b Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Wed, 5 Oct 2011 11:23:56 -0500 Subject: [PATCH] msxml3: Support setting unlimited nesting depth for a reader. --- dlls/msxml3/saxreader.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/dlls/msxml3/saxreader.c b/dlls/msxml3/saxreader.c index 857083a9ca5..b77180232a8 100644 --- a/dlls/msxml3/saxreader.c +++ b/dlls/msxml3/saxreader.c @@ -2390,6 +2390,13 @@ static HRESULT internal_putProperty( return E_NOTIMPL; } + if(!memcmp(prop, PropertyMaxElementDepthW, sizeof(PropertyMaxElementDepthW))) + { + if (V_VT(&value) == VT_I4 && V_I4(&value) == 0) return S_OK; + FIXME("(%p)->(%s): max-element-depth 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))) @@ -2401,9 +2408,6 @@ static HRESULT internal_putProperty( if(!memcmp(prop, PropertyInputSourceW, sizeof(PropertyInputSourceW))) return E_NOTIMPL; - if(!memcmp(prop, PropertyMaxElementDepthW, sizeof(PropertyMaxElementDepthW))) - return E_NOTIMPL; - if(!memcmp(prop, PropertySchemaDeclHandlerW, sizeof(PropertySchemaDeclHandlerW))) return E_NOTIMPL;