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
d04fd1d0
Commit
d04fd1d0
authored
Mar 03, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 03, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Fail on certain node types in insertBefore() for attributes, remove broken tests.
parent
873619e9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
3 deletions
+22
-3
attribute.c
dlls/msxml3/attribute.c
+22
-3
domdoc.c
dlls/msxml3/tests/domdoc.c
+0
-0
No files found.
dlls/msxml3/attribute.c
View file @
d04fd1d0
...
...
@@ -309,13 +309,32 @@ static HRESULT WINAPI domattr_get_attributes(
static
HRESULT
WINAPI
domattr_insertBefore
(
IXMLDOMAttribute
*
iface
,
IXMLDOMNode
*
newNode
,
VARIANT
refChild
,
IXMLDOMNode
**
o
utOldN
ode
)
IXMLDOMNode
**
o
ld_n
ode
)
{
domattr
*
This
=
impl_from_IXMLDOMAttribute
(
iface
);
DOMNodeType
type
;
HRESULT
hr
;
FIXME
(
"(%p)->(%p %s %p) needs test
\n
"
,
This
,
newNode
,
debugstr_variant
(
&
refChild
),
old_node
);
FIXME
(
"(%p)->(%p %s %p) needs test
\n
"
,
This
,
newNode
,
debugstr_variant
(
&
refChild
),
outOldNode
)
;
if
(
!
newNode
)
return
E_INVALIDARG
;
return
node_insert_before
(
&
This
->
node
,
newNode
,
&
refChild
,
outOldNode
);
hr
=
IXMLDOMNode_get_nodeType
(
newNode
,
&
type
);
if
(
hr
!=
S_OK
)
return
hr
;
TRACE
(
"new node type %d
\n
"
,
type
);
switch
(
type
)
{
case
NODE_ATTRIBUTE
:
case
NODE_CDATA_SECTION
:
case
NODE_COMMENT
:
case
NODE_ELEMENT
:
case
NODE_PROCESSING_INSTRUCTION
:
if
(
old_node
)
*
old_node
=
NULL
;
return
E_FAIL
;
default:
return
node_insert_before
(
&
This
->
node
,
newNode
,
&
refChild
,
old_node
);
}
}
static
HRESULT
WINAPI
domattr_replaceChild
(
...
...
dlls/msxml3/tests/domdoc.c
View file @
d04fd1d0
This diff is collapsed.
Click to expand it.
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