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
2508025b
Commit
2508025b
authored
Nov 27, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Fix get_namespaceURI() for document nodes.
parent
852bde49
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
domdoc.c
dlls/msxml3/domdoc.c
+1
-3
domdoc.c
dlls/msxml3/tests/domdoc.c
+8
-3
No files found.
dlls/msxml3/domdoc.c
View file @
2508025b
...
...
@@ -1369,17 +1369,15 @@ static HRESULT WINAPI domdoc_get_parsed(
return
S_OK
;
}
static
HRESULT
WINAPI
domdoc_get_namespaceURI
(
IXMLDOMDocument3
*
iface
,
BSTR
*
namespaceURI
)
{
domdoc
*
This
=
impl_from_IXMLDOMDocument3
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
namespaceURI
);
return
node_get_namespaceURI
(
&
This
->
node
,
namespaceURI
);
return
return_null_bstr
(
namespaceURI
);
}
static
HRESULT
WINAPI
domdoc_get_prefix
(
IXMLDOMDocument3
*
iface
,
BSTR
*
prefix
)
...
...
dlls/msxml3/tests/domdoc.c
View file @
2508025b
...
...
@@ -7137,6 +7137,11 @@ static void test_namespaces(void)
EXPECT_HR
(
hr
,
S_OK
);
ok
(
b
==
VARIANT_TRUE
,
"got %d
\n
"
,
b
);
str
=
(
BSTR
)
0xdeadbeef
;
hr
=
IXMLDOMDocument_get_namespaceURI
(
doc
,
&
str
);
EXPECT_HR
(
hr
,
S_FALSE
);
ok
(
str
==
NULL
,
"got %p
\n
"
,
str
);
hr
=
IXMLDOMDocument_selectSingleNode
(
doc
,
_bstr_
(
"//XMI.content"
),
&
node
);
EXPECT_HR
(
hr
,
S_OK
);
if
(
hr
==
S_OK
)
...
...
@@ -8757,11 +8762,11 @@ static void test_get_prefix(void)
/* 1. document */
str
=
(
void
*
)
0xdeadbeef
;
hr
=
IXMLDOMDocument_get_prefix
(
doc
,
&
str
);
ok
(
hr
==
S_FALSE
,
"got 0x%08x
\n
"
,
hr
);
ok
(
str
==
0
,
"got %p
\n
"
,
str
);
EXPECT_HR
(
hr
,
S_FALSE
);
ok
(
str
==
NULL
,
"got %p
\n
"
,
str
);
hr
=
IXMLDOMDocument_get_prefix
(
doc
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"got 0x%08x
\n
"
,
hr
);
EXPECT_HR
(
hr
,
E_INVALIDARG
);
/* 2. cdata */
hr
=
IXMLDOMDocument_createCDATASection
(
doc
,
NULL
,
&
cdata
);
...
...
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