Added msxml_normalize_line patchset

This commit is contained in:
Alistair Leslie-Hughes
2025-07-12 15:22:15 +10:00
parent 31cab243e7
commit 8c98aa0c22
2 changed files with 48 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
From 9be306cd143e6bf5f300a321101fb713edb9155b Mon Sep 17 00:00:00 2001
From: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Date: Sat, 12 Jul 2025 15:20:04 +1000
Subject: [PATCH] msxml: Support ISAXXMLReader::putFeature
normalize-line-breaks option
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=36686
---
dlls/msxml3/saxreader.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/dlls/msxml3/saxreader.c b/dlls/msxml3/saxreader.c
index 71a7f334420..9650af38597 100644
--- a/dlls/msxml3/saxreader.c
+++ b/dlls/msxml3/saxreader.c
@@ -60,7 +60,8 @@ typedef enum
SuppressValidationfatalError = 1 << 12,
UseInlineSchema = 1 << 13,
UseSchemaLocation = 1 << 14,
- LexicalHandlerParEntities = 1 << 15
+ LexicalHandlerParEntities = 1 << 15,
+ NormalizeLineBreaks = 1 << 16,
} saxreader_feature;
struct saxreader_feature_pair
@@ -78,6 +79,7 @@ static const struct saxreader_feature_pair saxreader_feature_map[] = {
{ Namespaces, L"http://xml.org/sax/features/namespaces" },
{ ProhibitDTD, L"prohibit-dtd" },
{ SchemaValidation, L"schema-validation" },
+ { NormalizeLineBreaks, L"normalize-line-breaks" },
};
static saxreader_feature get_saxreader_feature(const WCHAR *name)
@@ -3159,7 +3161,8 @@ static HRESULT WINAPI isaxxmlreader_putFeature(
if (feature == LexicalHandlerParEntities ||
feature == ProhibitDTD ||
feature == ExternalGeneralEntities ||
- feature == ExternalParameterEntities)
+ feature == ExternalParameterEntities ||
+ feature == NormalizeLineBreaks)
{
FIXME("(%p)->(%s %x) stub\n", This, debugstr_w(feature_name), value);
return set_feature_value(This, feature, value);
--
2.47.2

View File

@@ -0,0 +1,2 @@
Fixes: [36686] msxml: Support ISAXXMLReader::putFeature normalize-line-breaks option