From: Nikolay Sivov <nsivov@codeweavers.com> Converting NULLs will propagate wctomb last error to application, and sometimes it's not expected. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=59632 Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> --- dlls/msxml3/node.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/msxml3/node.c b/dlls/msxml3/node.c index d75590a31bc..1f2c7a52daa 100644 --- a/dlls/msxml3/node.c +++ b/dlls/msxml3/node.c @@ -4225,8 +4225,8 @@ static xmlNodePtr create_xmlnode_from_domnode(struct xmldoc_context *context, st struct domnode *n; xmlDtdPtr dtd; - name = xmlchar_from_wchar(node->name); - data = xmlchar_from_wchar(node->data); + name = node->name ? xmlchar_from_wchar(node->name) : NULL; + data = node->data ? xmlchar_from_wchar(node->data) : NULL; switch (node->type) { -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10618