[PATCH 0/1] MR10801: msxml3: Fix missing document output in save().
Otherwise output does not reach the stream. Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10801
From: Nikolay Sivov <nsivov@codeweavers.com> Otherwise output does not reach the stream. Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> --- dlls/msxml3/node.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/dlls/msxml3/node.c b/dlls/msxml3/node.c index ca95e7e229f..7493ab49eb3 100644 --- a/dlls/msxml3/node.c +++ b/dlls/msxml3/node.c @@ -1801,15 +1801,14 @@ static void node_dump_xml_attr(struct domnode *node, struct node_dump_context *c static void node_dump_xml(struct domnode *node, struct node_dump_context *context) { - struct string_buffer *buffer = &context->buffer; BSTR p = node->data; while (p && *p) { if (*p == '\n') - string_append(buffer, L"\r\n", 2); + node_dump_append(context, L"\r\n", 2); else - string_append(buffer, p, 1); + node_dump_append(context, p, 1); ++p; } } @@ -1866,17 +1865,16 @@ static void node_dump_pi(struct domnode *node, struct node_dump_context *context static void node_dump_format(struct node_dump_context *context) { - struct string_buffer *buffer = &context->buffer; unsigned int indent = context->indent; if (!context->needs_formatting) return; - string_append(buffer, L"\r\n", 2); + node_dump_append(context, L"\r\n", 2); while (indent--) { - string_append(buffer, L"\t", 1); + node_dump_append(context, L"\t", 1); } } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10801
participants (2)
-
Nikolay Sivov -
Nikolay Sivov (@nsivov)