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
83300893
Commit
83300893
authored
Jan 14, 2008
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Jan 14, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Corrected getAttribute to return current value and assign output var.
parent
b57a7e01
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
element.c
dlls/msxml3/element.c
+7
-2
domdoc.c
dlls/msxml3/tests/domdoc.c
+9
-2
No files found.
dlls/msxml3/element.c
View file @
83300893
...
...
@@ -459,15 +459,20 @@ static HRESULT WINAPI domelem_getAttribute(
domelem
*
This
=
impl_from_IXMLDOMElement
(
iface
);
xmlNodePtr
element
;
xmlChar
*
xml_name
,
*
xml_value
;
HRESULT
hr
=
E_FAIL
;
HRESULT
hr
=
S_FALSE
;
TRACE
(
"(%p)->(%s,%p)
\n
"
,
This
,
debugstr_w
(
name
),
value
);
if
(
!
value
||
!
name
)
return
E_INVALIDARG
;
element
=
get_element
(
This
);
if
(
!
element
)
return
E_FAIL
;
VariantInit
(
value
);
V_BSTR
(
value
)
=
NULL
;
V_VT
(
value
)
=
VT_NULL
;
xml_name
=
xmlChar_from_wchar
(
name
);
xml_value
=
xmlGetNsProp
(
element
,
xml_name
,
NULL
);
HeapFree
(
GetProcessHeap
(),
0
,
xml_name
);
...
...
dlls/msxml3/tests/domdoc.c
View file @
83300893
...
...
@@ -697,8 +697,8 @@ static void test_domnode( void )
V_VT
(
&
var
)
=
VT_I4
;
V_I4
(
&
var
)
=
0x1234
;
r
=
IXMLDOMElement_getAttribute
(
element
,
str
,
&
var
);
ok
(
r
==
E_FAIL
,
"getAttribute ret %08x
\n
"
,
r
);
ok
(
V_VT
(
&
var
)
==
VT_
EMPTY
,
"vt = %x
\n
"
,
V_VT
(
&
var
));
ok
(
r
==
S_FALSE
,
"getAttribute ret %08x
\n
"
,
r
);
ok
(
V_VT
(
&
var
)
==
VT_
NULL
,
"vt = %x
\n
"
,
V_VT
(
&
var
));
VariantClear
(
&
var
);
SysFreeString
(
str
);
...
...
@@ -710,6 +710,13 @@ static void test_domnode( void )
ok
(
V_VT
(
&
var
)
==
VT_BSTR
,
"vt = %x
\n
"
,
V_VT
(
&
var
));
ok
(
!
lstrcmpW
(
V_BSTR
(
&
var
),
szstr1
),
"wrong attr value
\n
"
);
VariantClear
(
&
var
);
r
=
IXMLDOMElement_getAttribute
(
element
,
NULL
,
&
var
);
ok
(
r
==
E_INVALIDARG
,
"getAttribute ret %08x
\n
"
,
r
);
r
=
IXMLDOMElement_getAttribute
(
element
,
str
,
NULL
);
ok
(
r
==
E_INVALIDARG
,
"getAttribute ret %08x
\n
"
,
r
);
SysFreeString
(
str
);
r
=
IXMLDOMElement_get_attributes
(
element
,
&
map
);
...
...
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