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
b7e6906c
Commit
b7e6906c
authored
Feb 01, 2008
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Feb 04, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Validated attribute name.
parent
8e57a419
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
element.c
dlls/msxml3/element.c
+7
-2
domdoc.c
dlls/msxml3/tests/domdoc.c
+1
-1
No files found.
dlls/msxml3/element.c
View file @
b7e6906c
...
...
@@ -458,7 +458,7 @@ static HRESULT WINAPI domelem_getAttribute(
{
domelem
*
This
=
impl_from_IXMLDOMElement
(
iface
);
xmlNodePtr
element
;
xmlChar
*
xml_name
,
*
xml_value
;
xmlChar
*
xml_name
,
*
xml_value
=
NULL
;
HRESULT
hr
=
S_FALSE
;
TRACE
(
"(%p)->(%s,%p)
\n
"
,
This
,
debugstr_w
(
name
),
value
);
...
...
@@ -474,7 +474,12 @@ static HRESULT WINAPI domelem_getAttribute(
V_VT
(
value
)
=
VT_NULL
;
xml_name
=
xmlChar_from_wchar
(
name
);
xml_value
=
xmlGetNsProp
(
element
,
xml_name
,
NULL
);
if
(
!
xmlValidateNameValue
(
xml_name
))
hr
=
E_FAIL
;
else
xml_value
=
xmlGetNsProp
(
element
,
xml_name
,
NULL
);
HeapFree
(
GetProcessHeap
(),
0
,
xml_name
);
if
(
xml_value
)
{
...
...
dlls/msxml3/tests/domdoc.c
View file @
b7e6906c
...
...
@@ -719,7 +719,7 @@ static void test_domnode( void )
V_VT
(
&
var
)
=
VT_I4
;
V_I4
(
&
var
)
=
0x1234
;
r
=
IXMLDOMElement_getAttribute
(
element
,
str
,
&
var
);
ok
(
r
==
S_FALSE
,
"getAttribute ret %08x
\n
"
,
r
);
ok
(
r
==
E_FAIL
,
"getAttribute ret %08x
\n
"
,
r
);
ok
(
V_VT
(
&
var
)
==
VT_NULL
,
"vt = %x
\n
"
,
V_VT
(
&
var
));
VariantClear
(
&
var
);
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