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
f65fd26f
Commit
f65fd26f
authored
Feb 09, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 10, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: IXMLDOMAttribute shouldn't report its parent.
parent
535afbd3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
attribute.c
dlls/msxml3/attribute.c
+4
-1
domdoc.c
dlls/msxml3/tests/domdoc.c
+12
-1
No files found.
dlls/msxml3/attribute.c
View file @
f65fd26f
...
...
@@ -213,7 +213,10 @@ static HRESULT WINAPI domattr_get_parentNode(
IXMLDOMNode
**
parent
)
{
domattr
*
This
=
impl_from_IXMLDOMAttribute
(
iface
);
return
IXMLDOMNode_get_parentNode
(
IXMLDOMNode_from_impl
(
&
This
->
node
),
parent
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
parent
);
if
(
!
parent
)
return
E_INVALIDARG
;
*
parent
=
NULL
;
return
S_FALSE
;
}
static
HRESULT
WINAPI
domattr_get_childNodes
(
...
...
dlls/msxml3/tests/domdoc.c
View file @
f65fd26f
...
...
@@ -1216,8 +1216,19 @@ static void test_domnode( void )
r
=
IXMLDOMElement_getAttributeNode
(
element
,
str
,
&
attr
);
ok
(
r
==
S_OK
,
"GetAttributeNode ret %08x
\n
"
,
r
);
ok
(
attr
!=
NULL
,
"getAttributeNode returned NULL
\n
"
);
if
(
attr
)
if
(
attr
)
{
r
=
IXMLDOMAttribute_get_parentNode
(
attr
,
NULL
);
ok
(
r
==
E_INVALIDARG
,
"Expected E_INVALIDARG, ret %08x
\n
"
,
r
);
/* attribute doesn't have a parent in msxml interpretation */
node
=
(
IXMLDOMNode
*
)
0xdeadbeef
;
r
=
IXMLDOMAttribute_get_parentNode
(
attr
,
&
node
);
ok
(
r
==
S_FALSE
,
"Expected S_FALSE, ret %08x
\n
"
,
r
);
ok
(
node
==
NULL
,
"Expected NULL, got %p
\n
"
,
node
);
IXMLDOMAttribute_Release
(
attr
);
}
SysFreeString
(
str
);
...
...
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