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
1140291a
Commit
1140291a
authored
Jun 01, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 01, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3/schema: Support element nodes in add().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
20686f47
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
1 deletion
+24
-1
schema.c
dlls/msxml3/schema.c
+24
-1
No files found.
dlls/msxml3/schema.c
View file @
1140291a
...
...
@@ -1247,7 +1247,30 @@ static HRESULT WINAPI schema_cache_add(IXMLDOMSchemaCollection2* iface, BSTR uri
IUnknown_QueryInterface
(
V_UNKNOWN
(
&
var
),
&
IID_IXMLDOMNode
,
(
void
**
)
&
domnode
);
if
(
domnode
)
doc
=
xmlNodePtr_from_domnode
(
domnode
,
XML_DOCUMENT_NODE
)
->
doc
;
{
DOMNodeType
type
;
IXMLDOMNode_get_nodeType
(
domnode
,
&
type
);
switch
(
type
)
{
case
NODE_ELEMENT
:
{
IXMLDOMDocument
*
domdoc
;
VARIANT_BOOL
b
;
BSTR
xml
;
IXMLDOMNode_get_xml
(
domnode
,
&
xml
);
DOMDocument_create
(
This
->
version
,
(
void
**
)
&
domdoc
);
IXMLDOMDocument_loadXML
(
domdoc
,
xml
,
&
b
);
SysFreeString
(
xml
);
doc
=
xmlNodePtr_from_domnode
((
IXMLDOMNode
*
)
domdoc
,
XML_DOCUMENT_NODE
)
->
doc
;
break
;
}
default:
doc
=
xmlNodePtr_from_domnode
(
domnode
,
XML_DOCUMENT_NODE
)
->
doc
;
break
;
}
}
if
(
!
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