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
682d4f14
Commit
682d4f14
authored
Dec 09, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 09, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xmllite: Allow prefixed element names.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9b98d69e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
reader.c
dlls/xmllite/reader.c
+1
-3
reader.c
dlls/xmllite/tests/reader.c
+2
-1
No files found.
dlls/xmllite/reader.c
View file @
682d4f14
...
@@ -2233,9 +2233,7 @@ static HRESULT reader_parse_element(xmlreader *reader)
...
@@ -2233,9 +2233,7 @@ static HRESULT reader_parse_element(xmlreader *reader)
hr
=
reader_parse_stag
(
reader
,
&
prefix
,
&
local
,
&
qname
,
&
empty
);
hr
=
reader_parse_stag
(
reader
,
&
prefix
,
&
local
,
&
qname
,
&
empty
);
if
(
FAILED
(
hr
))
return
hr
;
if
(
FAILED
(
hr
))
return
hr
;
/* FIXME: need to check for defined namespace to reject invalid prefix,
/* FIXME: need to check for defined namespace to reject invalid prefix */
currently reject all prefixes */
if
(
prefix
.
len
)
return
NC_E_UNDECLAREDPREFIX
;
/* if we got empty element and stack is empty go straight to Misc */
/* if we got empty element and stack is empty go straight to Misc */
if
(
empty
&&
list_empty
(
&
reader
->
elements
))
if
(
empty
&&
list_empty
(
&
reader
->
elements
))
...
...
dlls/xmllite/tests/reader.c
View file @
682d4f14
...
@@ -1362,7 +1362,8 @@ static void test_read_element(void)
...
@@ -1362,7 +1362,8 @@ static void test_read_element(void)
if
(
test
->
hr_broken
)
if
(
test
->
hr_broken
)
ok
(
hr
==
test
->
hr
||
broken
(
hr
==
test
->
hr_broken
),
"got %08x for %s
\n
"
,
hr
,
test
->
xml
);
ok
(
hr
==
test
->
hr
||
broken
(
hr
==
test
->
hr_broken
),
"got %08x for %s
\n
"
,
hr
,
test
->
xml
);
else
else
ok
(
hr
==
test
->
hr
,
"got %08x for %s
\n
"
,
hr
,
test
->
xml
);
todo_wine_if
(
test
->
hr
==
NC_E_UNDECLAREDPREFIX
)
ok
(
hr
==
test
->
hr
,
"got %08x for %s
\n
"
,
hr
,
test
->
xml
);
if
(
hr
==
S_OK
)
if
(
hr
==
S_OK
)
{
{
const
WCHAR
*
str
;
const
WCHAR
*
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