Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
f0c08bd0
Commit
f0c08bd0
authored
Nov 28, 2023
by
Daniel Lehman
Committed by
Alexandre Julliard
Dec 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Handle default namespace in get_prefix.
parent
814807a1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
14 deletions
+5
-14
attribute.c
dlls/msxml3/attribute.c
+5
-8
domdoc.c
dlls/msxml3/tests/domdoc.c
+0
-2
domdoc.c
dlls/msxml4/tests/domdoc.c
+0
-2
domdoc.c
dlls/msxml6/tests/domdoc.c
+0
-2
No files found.
dlls/msxml3/attribute.c
View file @
f0c08bd0
...
...
@@ -589,14 +589,11 @@ static HRESULT WINAPI domattr_get_prefix(
*
prefix
=
NULL
;
if
(
ns
)
{
/* special case for default namespace definition */
if
(
xmlStrEqual
(
This
->
node
.
node
->
name
,
xmlns
))
*
prefix
=
bstr_from_xmlChar
(
xmlns
);
else
if
(
ns
->
prefix
)
*
prefix
=
bstr_from_xmlChar
(
ns
->
prefix
);
}
if
(
xmldoc_version
(
This
->
node
.
node
->
doc
)
!=
MSXML6
&&
xmlStrEqual
(
This
->
node
.
node
->
name
,
xmlns
))
*
prefix
=
bstr_from_xmlChar
(
xmlns
);
else
if
(
ns
&&
ns
->
prefix
)
*
prefix
=
bstr_from_xmlChar
(
ns
->
prefix
);
TRACE
(
"prefix: %s
\n
"
,
debugstr_w
(
*
prefix
));
...
...
dlls/msxml3/tests/domdoc.c
View file @
f0c08bd0
...
...
@@ -13785,10 +13785,8 @@ static void test_namespaces_as_attributes(void)
hr
=
IXMLDOMNode_get_prefix
(
item
,
&
str
);
if
(
test
->
prefixes
[
i
])
{
todo_wine_if
(
test
->
todo
)
{
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
ok
(
!
lstrcmpW
(
str
,
_bstr_
(
test
->
prefixes
[
i
])),
"got %s
\n
"
,
wine_dbgstr_w
(
str
));
}
SysFreeString
(
str
);
}
else
...
...
dlls/msxml4/tests/domdoc.c
View file @
f0c08bd0
...
...
@@ -269,11 +269,9 @@ static void test_namespaces_as_attributes(void)
if
(
test
->
prefixes
[
i
])
{
/* MSXML4 can report different results with different service packs */
todo_wine_if
(
test
->
todo
)
{
ok
(
hr
==
S_OK
||
broken
(
hr
==
S_FALSE
),
"Unexpected hr %#lx.
\n
"
,
hr
);
ok
(
!
lstrcmpW
(
str
,
test
->
prefixes
[
i
])
||
broken
(
!
str
),
"got %s
\n
"
,
wine_dbgstr_w
(
str
));
}
SysFreeString
(
str
);
}
else
...
...
dlls/msxml6/tests/domdoc.c
View file @
f0c08bd0
...
...
@@ -105,10 +105,8 @@ static void test_create_attribute(void)
}
else
{
todo_wine_if
(
ptr
->
todo
)
{
ok
(
hr
==
S_FALSE
,
"%d: unexpected hr %#lx
\n
"
,
i
,
hr
);
ok
(
str
==
NULL
,
"%d: got prefix %s
\n
"
,
i
,
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