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
c0661fdb
Commit
c0661fdb
authored
Jul 01, 2008
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 02, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Added IXMLDOMElement_getAttributeNode implementation.
parent
bd4e7379
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
6 deletions
+27
-6
element.c
dlls/msxml3/element.c
+27
-2
domdoc.c
dlls/msxml3/tests/domdoc.c
+0
-4
No files found.
dlls/msxml3/element.c
View file @
c0661fdb
...
...
@@ -582,8 +582,33 @@ static HRESULT WINAPI domelem_getAttributeNode(
IXMLDOMElement
*
iface
,
BSTR
p
,
IXMLDOMAttribute
**
attributeNode
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
domelem
*
This
=
impl_from_IXMLDOMElement
(
iface
);
xmlChar
*
xml_name
;
xmlNodePtr
element
;
xmlAttrPtr
attr
;
IUnknown
*
unk
;
HRESULT
hr
=
E_FAIL
;
TRACE
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_w
(
p
),
attributeNode
);
element
=
get_element
(
This
);
if
(
!
element
)
return
E_FAIL
;
xml_name
=
xmlChar_from_wchar
(
p
);
attr
=
xmlHasProp
(
element
,
xml_name
);
if
(
attr
)
{
unk
=
create_attribute
((
xmlNodePtr
)
attr
);
hr
=
IUnknown_QueryInterface
(
unk
,
&
IID_IXMLDOMAttribute
,
(
void
**
)
attributeNode
);
IUnknown_Release
(
unk
);
}
else
{
*
attributeNode
=
NULL
;
}
HeapFree
(
GetProcessHeap
(),
0
,
xml_name
);
return
hr
;
}
static
HRESULT
WINAPI
domelem_setAttributeNode
(
...
...
dlls/msxml3/tests/domdoc.c
View file @
c0661fdb
...
...
@@ -939,10 +939,8 @@ static void test_domnode( void )
attr
=
(
IXMLDOMAttribute
*
)
0xdeadbeef
;
r
=
IXMLDOMElement_getAttributeNode
(
element
,
str
,
&
attr
);
todo_wine
{
ok
(
r
==
E_FAIL
,
"getAttributeNode ret %08x
\n
"
,
r
);
ok
(
attr
==
NULL
,
"getAttributeNode ret %p, expected NULL
\n
"
,
attr
);
}
SysFreeString
(
str
);
str
=
SysAllocString
(
szdl
);
...
...
@@ -962,10 +960,8 @@ static void test_domnode( void )
attr
=
NULL
;
r
=
IXMLDOMElement_getAttributeNode
(
element
,
str
,
&
attr
);
todo_wine
{
ok
(
r
==
S_OK
,
"GetAttributeNode ret %08x
\n
"
,
r
);
ok
(
attr
!=
NULL
,
"getAttributeNode returned NULL
\n
"
);
}
if
(
attr
)
IXMLDOMAttribute_Release
(
attr
);
...
...
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