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
4e94abd7
Commit
4e94abd7
authored
Sep 14, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 14, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Fix IXMLDOMNode::get_namespaceURI() for empty URIs.
parent
154c0828
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
12 deletions
+10
-12
node.c
dlls/msxml3/node.c
+8
-10
domdoc.c
dlls/msxml3/tests/domdoc.c
+2
-2
No files found.
dlls/msxml3/node.c
View file @
4e94abd7
...
...
@@ -1402,8 +1402,7 @@ static HRESULT WINAPI xmlnode_get_namespaceURI(
BSTR
*
namespaceURI
)
{
xmlnode
*
This
=
impl_from_IXMLDOMNode
(
iface
);
HRESULT
hr
=
S_FALSE
;
xmlNsPtr
*
pNSList
;
xmlNsPtr
*
ns
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
namespaceURI
);
...
...
@@ -1412,16 +1411,15 @@ static HRESULT WINAPI xmlnode_get_namespaceURI(
*
namespaceURI
=
NULL
;
pNSList
=
xmlGetNsList
(
This
->
node
->
doc
,
This
->
node
);
if
(
pNSList
)
if
((
ns
=
xmlGetNsList
(
This
->
node
->
doc
,
This
->
node
)))
{
*
namespaceURI
=
bstr_from_xmlChar
(
pNSList
[
0
]
->
href
);
xmlFree
(
pNSList
);
hr
=
S_OK
;
if
(
ns
[
0
]
->
href
)
*
namespaceURI
=
bstr_from_xmlChar
(
ns
[
0
]
->
href
);
xmlFree
(
ns
);
}
return
hr
;
TRACE
(
"uri: %s
\n
"
,
debugstr_w
(
*
namespaceURI
));
return
*
namespaceURI
?
S_OK
:
S_FALSE
;
}
static
HRESULT
WINAPI
xmlnode_get_prefix
(
...
...
@@ -1444,7 +1442,7 @@ static HRESULT WINAPI xmlnode_get_prefix(
xmlFree
(
ns
);
}
TRACE
(
"prefix %s
\n
"
,
debugstr_w
(
*
prefixString
));
TRACE
(
"prefix
:
%s
\n
"
,
debugstr_w
(
*
prefixString
));
return
*
prefixString
?
S_OK
:
S_FALSE
;
}
...
...
dlls/msxml3/tests/domdoc.c
View file @
4e94abd7
...
...
@@ -6163,8 +6163,8 @@ static void test_get_prefix(void)
str
=
(
void
*
)
0xdeadbeef
;
hr
=
IXMLDOMElement_get_namespaceURI
(
element
,
&
str
);
todo_wine
ok
(
hr
==
S_FALSE
,
"got 0x%08x
\n
"
,
hr
);
todo_wine
ok
(
str
==
0
,
"got %p
\n
"
,
str
);
ok
(
hr
==
S_FALSE
,
"got 0x%08x
\n
"
,
hr
);
ok
(
str
==
0
,
"got %p
\n
"
,
str
);
IXMLDOMElement_Release
(
element
);
...
...
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