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
d659e63d
Commit
d659e63d
authored
Jul 02, 2008
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Jul 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Added support to create an Attribute in createNode.
parent
0435574a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
domdoc.c
dlls/msxml3/domdoc.c
+11
-0
domdoc.c
dlls/msxml3/tests/domdoc.c
+18
-0
No files found.
dlls/msxml3/domdoc.c
View file @
d659e63d
...
...
@@ -1224,6 +1224,17 @@ static HRESULT WINAPI domdoc_createNode(
*
node
=
create_node
(
xmlnode
);
TRACE
(
"created %p
\n
"
,
xmlnode
);
break
;
case
NODE_ATTRIBUTE
:
xmlnode
=
(
xmlNode
*
)
xmlNewProp
(
NULL
,
xml_name
,
NULL
);
if
(
xmlnode
)
{
xmlnode
->
doc
=
get_doc
(
This
);
*
node
=
(
IXMLDOMNode
*
)
create_attribute
(
xmlnode
);
}
TRACE
(
"created %p
\n
"
,
xmlnode
);
break
;
default:
FIXME
(
"unhandled node type %d
\n
"
,
node_type
);
...
...
dlls/msxml3/tests/domdoc.c
View file @
d659e63d
...
...
@@ -1491,6 +1491,24 @@ static void test_create(void)
VariantClear
(
&
var
);
SysFreeString
(
name
);
/* Create an Attribute */
V_VT
(
&
var
)
=
VT_I4
;
V_I4
(
&
var
)
=
NODE_ATTRIBUTE
;
str
=
SysAllocString
(
szAttribute
);
r
=
IXMLDOMDocument_createNode
(
doc
,
var
,
str
,
NULL
,
&
node
);
ok
(
r
==
S_OK
,
"returns %08x
\n
"
,
r
);
ok
(
node
!=
NULL
,
"node was null
\n
"
);
SysFreeString
(
str
);
if
(
r
==
S_OK
)
{
r
=
IXMLDOMNode_get_nodeTypeString
(
node
,
&
str
);
ok
(
r
==
S_OK
,
"returns %08x
\n
"
,
r
);
ok
(
!
lstrcmpW
(
str
,
_bstr_
(
"attribute"
)
),
"incorrect nodeTypeString string
\n
"
);
SysFreeString
(
str
);
IXMLDOMNode_Release
(
node
);
}
IXMLDOMElement_Release
(
element
);
IXMLDOMNode_Release
(
root
);
IXMLDOMDocument_Release
(
doc
);
...
...
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