Nikolay Sivov : msxml3: Support setting unlimited nesting depth for a reader.
Alexandre Julliard
julliard at winehq.org
Wed Oct 5 18:03:58 CDT 2011
Module: wine
Branch: master
Commit: 5f68f3710c90e65b4e6182bd3079c0cbc35a502b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5f68f3710c90e65b4e6182bd3079c0cbc35a502b
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Wed Oct 5 11:23:56 2011 -0500
msxml3: Support setting unlimited nesting depth for a reader.
---
dlls/msxml3/saxreader.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/dlls/msxml3/saxreader.c b/dlls/msxml3/saxreader.c
index 857083a..b771802 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;
More information about the wine-cvs
mailing list