msxml3: Accept disabled parameter entities feature.

This commit is contained in:
Nikolay Sivov 2011-10-05 09:20:32 -05:00 committed by Alexandre Julliard
parent 9969b8dec1
commit 1bd501ab3e
1 changed files with 8 additions and 0 deletions

View File

@ -206,6 +206,11 @@ static const WCHAR FeatureExternalGeneralEntitiesW[] = {
'-','e','n','t','i','t','i','e','s',0 '-','e','n','t','i','t','i','e','s',0
}; };
static const WCHAR FeatureExternalParameterEntitiesW[] = {
'h','t','t','p',':','/','/','x','m','l','.','o','r','g','/','s','a','x','/','f','e','a','t','u','r','e','s',
'/','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 inline HRESULT set_feature_value(saxreader *reader, enum ReaderFeatures feature, VARIANT_BOOL value) static inline HRESULT set_feature_value(saxreader *reader, enum ReaderFeatures feature, VARIANT_BOOL value)
{ {
if (value == VARIANT_TRUE) if (value == VARIANT_TRUE)
@ -2614,6 +2619,9 @@ static HRESULT WINAPI saxxmlreader_putFeature(
if (!strcmpW(FeatureExternalGeneralEntitiesW, feature) && value == VARIANT_FALSE) if (!strcmpW(FeatureExternalGeneralEntitiesW, feature) && value == VARIANT_FALSE)
return set_feature_value(This, ExternalGeneralEntities, value); return set_feature_value(This, ExternalGeneralEntities, value);
if (!strcmpW(FeatureExternalParameterEntitiesW, feature) && value == VARIANT_FALSE)
return set_feature_value(This, ExternalParameterEntities, value);
FIXME("(%p)->(%s %x) stub\n", This, debugstr_w(feature), value); FIXME("(%p)->(%s %x) stub\n", This, debugstr_w(feature), value);
return E_NOTIMPL; return E_NOTIMPL;
} }