Nikolay Sivov : msxml3/saxreader: Accept external-general-entities and external-parameter-entities.

Alexandre Julliard julliard at winehq.org
Tue Feb 27 17:29:32 CST 2018


Module: wine
Branch: master
Commit: 585e12fa9d3fbf3e3460350e44597d7c0ec18ad2
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=585e12fa9d3fbf3e3460350e44597d7c0ec18ad2

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Tue Feb 27 01:16:39 2018 +0300

msxml3/saxreader: Accept external-general-entities and external-parameter-entities.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msxml3/saxreader.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/dlls/msxml3/saxreader.c b/dlls/msxml3/saxreader.c
index 05c774b..2a30475 100644
--- a/dlls/msxml3/saxreader.c
+++ b/dlls/msxml3/saxreader.c
@@ -3247,16 +3247,17 @@ static HRESULT WINAPI isaxxmlreader_putFeature(
     feature = get_saxreader_feature(feature_name);
 
     /* accepted cases */
-    if ((feature == ExternalGeneralEntities   && value == VARIANT_FALSE) ||
-        (feature == ExternalParameterEntities && value == VARIANT_FALSE) ||
-        (feature == ExhaustiveErrors && value == VARIANT_FALSE) ||
+    if ((feature == ExhaustiveErrors && value == VARIANT_FALSE) ||
          feature == Namespaces ||
          feature == NamespacePrefixes)
     {
         return set_feature_value(This, feature, value);
     }
 
-    if (feature == LexicalHandlerParEntities || feature == ProhibitDTD)
+    if (feature == LexicalHandlerParEntities ||
+            feature == ProhibitDTD ||
+            feature == ExternalGeneralEntities ||
+            feature == ExternalParameterEntities)
     {
         FIXME("(%p)->(%s %x) stub\n", This, debugstr_w(feature_name), value);
         return set_feature_value(This, feature, value);




More information about the wine-cvs mailing list