From cc4c6946238300979fc421a79f9f6b8800979b9f Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Wed, 5 Oct 2011 09:37:40 -0500 Subject: [PATCH] msxml3: Accept lexical handler parameter entities switch. --- dlls/msxml3/saxreader.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/dlls/msxml3/saxreader.c b/dlls/msxml3/saxreader.c index 77373f14afb..b7cd4323f11 100644 --- a/dlls/msxml3/saxreader.c +++ b/dlls/msxml3/saxreader.c @@ -64,7 +64,8 @@ enum ReaderFeatures ServerHttpRequest = 1 << 11, SuppressValidationfatalError = 1 << 12, UseInlineSchema = 1 << 13, - UseSchemaLocation = 1 << 14 + UseSchemaLocation = 1 << 14, + LexicalHandlerParEntities = 1 << 15 }; struct bstrpool @@ -211,6 +212,11 @@ static const WCHAR FeatureExternalParameterEntitiesW[] = { '/','e','x','t','e','r','n','a','l','-','p','a','r','a','m','e','t','e','r','-','e','n','t','i','t','i','e','s',0 }; +static const WCHAR FeatureLexicalHandlerParEntitiesW[] = { + 'h','t','t','p',':','/','/','x','m','l','.','o','r','g','/','s','a','x','/','f','e','a','t','u','r','e','s', + '/','l','e','x','i','c','a','l','-','h','a','n','d','l','e','r','/','p','a','r','a','m','e','t','e','r','-','e','n','t','i','t','i','e','s',0 +}; + static inline HRESULT set_feature_value(saxreader *reader, enum ReaderFeatures feature, VARIANT_BOOL value) { if (value == VARIANT_TRUE) @@ -2622,6 +2628,12 @@ static HRESULT WINAPI saxxmlreader_putFeature( if (!strcmpW(FeatureExternalParameterEntitiesW, feature) && value == VARIANT_FALSE) return set_feature_value(This, ExternalParameterEntities, value); + if (!strcmpW(FeatureLexicalHandlerParEntitiesW, feature)) + { + FIXME("(%p)->(%s %x) stub\n", This, debugstr_w(feature), value); + return set_feature_value(This, LexicalHandlerParEntities, value); + } + FIXME("(%p)->(%s %x) stub\n", This, debugstr_w(feature), value); return E_NOTIMPL; } -- 2.11.4.GIT