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
e7187ff3
Commit
e7187ff3
authored
Jan 16, 2006
by
Huw Davies
Committed by
Alexandre Julliard
Jan 16, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml: Fix for get_nodeValue on attributes.
parent
65707fb9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
node.c
dlls/msxml3/node.c
+5
-1
domdoc.c
dlls/msxml3/tests/domdoc.c
+6
-0
No files found.
dlls/msxml3/node.c
View file @
e7187ff3
...
@@ -225,10 +225,14 @@ static HRESULT WINAPI xmlnode_get_nodeValue(
...
@@ -225,10 +225,14 @@ static HRESULT WINAPI xmlnode_get_nodeValue(
switch
(
This
->
node
->
type
)
switch
(
This
->
node
->
type
)
{
{
case
XML_ATTRIBUTE_NODE
:
case
XML_ATTRIBUTE_NODE
:
{
xmlChar
*
content
=
xmlNodeGetContent
(
This
->
node
);
V_VT
(
value
)
=
VT_BSTR
;
V_VT
(
value
)
=
VT_BSTR
;
V_BSTR
(
value
)
=
bstr_from_xmlChar
(
This
->
node
->
name
);
V_BSTR
(
value
)
=
bstr_from_xmlChar
(
content
);
xmlFree
(
content
);
r
=
S_OK
;
r
=
S_OK
;
break
;
break
;
}
case
XML_TEXT_NODE
:
case
XML_TEXT_NODE
:
V_VT
(
value
)
=
VT_BSTR
;
V_VT
(
value
)
=
VT_BSTR
;
V_BSTR
(
value
)
=
bstr_from_xmlChar
(
This
->
node
->
content
);
V_BSTR
(
value
)
=
bstr_from_xmlChar
(
This
->
node
->
content
);
...
...
dlls/msxml3/tests/domdoc.c
View file @
e7187ff3
...
@@ -404,6 +404,12 @@ void test_domnode( void )
...
@@ -404,6 +404,12 @@ void test_domnode( void )
ok
(
r
==
S_OK
,
"get_baseName returned wrong code
\n
"
);
ok
(
r
==
S_OK
,
"get_baseName returned wrong code
\n
"
);
ok
(
lstrcmpW
(
str
,
szdl
)
==
0
,
"basename was wrong
\n
"
);
ok
(
lstrcmpW
(
str
,
szdl
)
==
0
,
"basename was wrong
\n
"
);
r
=
IXMLDOMNode_get_nodeValue
(
node
,
&
var
);
ok
(
r
==
S_OK
,
"returns %08lx
\n
"
,
r
);
ok
(
V_VT
(
&
var
)
==
VT_BSTR
,
"vt %x
\n
"
,
V_VT
(
&
var
));
ok
(
!
lstrcmpW
(
V_BSTR
(
&
var
),
szstr1
),
"nodeValue incorrect
\n
"
);
VariantClear
(
&
var
);
r
=
IXMLDOMNode_get_childNodes
(
node
,
NULL
);
r
=
IXMLDOMNode_get_childNodes
(
node
,
NULL
);
ok
(
r
==
E_INVALIDARG
,
"get_childNodes returned wrong code
\n
"
);
ok
(
r
==
E_INVALIDARG
,
"get_childNodes returned wrong code
\n
"
);
...
...
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