Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
4e1a3cc8
Commit
4e1a3cc8
authored
Nov 28, 2023
by
Daniel Lehman
Committed by
Alexandre Julliard
Dec 05, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Handle default namespace in get_nodeName.
parent
b9e8a742
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
node.c
dlls/msxml3/node.c
+14
-0
domdoc.c
dlls/msxml3/tests/domdoc.c
+0
-1
domdoc.c
dlls/msxml4/tests/domdoc.c
+0
-1
No files found.
dlls/msxml3/node.c
View file @
4e1a3cc8
...
...
@@ -186,6 +186,13 @@ HRESULT node_get_nodeName(xmlnode *This, BSTR *name)
hr
=
node_get_base_name
(
This
,
&
base
);
if
(
hr
!=
S_OK
)
return
hr
;
if
(
!
base
[
0
]
&&
xmldoc_version
(
This
->
node
->
doc
)
!=
MSXML6
)
{
SysFreeString
(
base
);
*
name
=
SysAllocString
(
L"xmlns"
);
return
S_OK
;
}
hr
=
node_get_prefix
(
This
,
&
prefix
);
if
(
hr
==
S_OK
)
{
...
...
@@ -194,10 +201,17 @@ HRESULT node_get_nodeName(xmlnode *This, BSTR *name)
/* +1 for ':' */
ptr
=
*
name
=
SysAllocStringLen
(
NULL
,
SysStringLen
(
base
)
+
SysStringLen
(
prefix
)
+
1
);
if
(
SysStringByteLen
(
prefix
))
{
memcpy
(
ptr
,
prefix
,
SysStringByteLen
(
prefix
));
ptr
+=
SysStringLen
(
prefix
);
}
if
(
SysStringByteLen
(
base
))
{
if
(
SysStringByteLen
(
prefix
))
memcpy
(
ptr
++
,
&
colW
,
sizeof
(
WCHAR
));
memcpy
(
ptr
,
base
,
SysStringByteLen
(
base
));
}
SysFreeString
(
base
);
SysFreeString
(
prefix
);
...
...
dlls/msxml3/tests/domdoc.c
View file @
4e1a3cc8
...
...
@@ -13778,7 +13778,6 @@ static void test_namespaces_as_attributes(void)
str
=
NULL
;
hr
=
IXMLDOMNode_get_nodeName
(
item
,
&
str
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
todo_wine_if
(
test
->
todo
)
ok
(
!
lstrcmpW
(
str
,
_bstr_
(
test
->
names
[
i
])),
"got %s
\n
"
,
wine_dbgstr_w
(
str
));
SysFreeString
(
str
);
...
...
dlls/msxml4/tests/domdoc.c
View file @
4e1a3cc8
...
...
@@ -261,7 +261,6 @@ static void test_namespaces_as_attributes(void)
str
=
NULL
;
hr
=
IXMLDOMNode_get_nodeName
(
item
,
&
str
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
todo_wine_if
(
test
->
todo
)
ok
(
!
lstrcmpW
(
str
,
test
->
names
[
i
]),
"got %s
\n
"
,
wine_dbgstr_w
(
str
));
SysFreeString
(
str
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment