Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
70028b7d
Commit
70028b7d
authored
Mar 07, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 07, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xmllite/reader: Return empty value for elements.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7c44c65e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
reader.c
dlls/xmllite/reader.c
+2
-0
reader.c
dlls/xmllite/tests/reader.c
+11
-1
No files found.
dlls/xmllite/reader.c
View file @
70028b7d
...
...
@@ -2244,6 +2244,7 @@ static HRESULT reader_parse_element(xmlreader *reader)
reader_set_strvalue
(
reader
,
StringValue_Prefix
,
&
prefix
);
reader_set_strvalue
(
reader
,
StringValue_LocalName
,
&
local
);
reader_set_strvalue
(
reader
,
StringValue_QualifiedName
,
&
qname
);
reader_set_strvalue
(
reader
,
StringValue_Value
,
&
strval_empty
);
break
;
}
default:
...
...
@@ -2899,6 +2900,7 @@ static HRESULT WINAPI xmlreader_MoveToElement(IXmlReader* iface)
reader_set_strvalue
(
This
,
StringValue_QualifiedName
,
&
element
->
qname
);
}
}
reader_set_strvalue
(
This
,
StringValue_Value
,
&
strval_empty
);
return
S_OK
;
}
...
...
dlls/xmllite/tests/reader.c
View file @
70028b7d
...
...
@@ -909,7 +909,6 @@ todo_wine {
hr
=
IXmlReader_GetValue
(
reader
,
&
val
,
NULL
);
ok
(
hr
==
S_OK
,
"expected S_OK, got %08x
\n
"
,
hr
);
todo_wine
ok
(
*
val
==
0
,
"got %s
\n
"
,
wine_dbgstr_w
(
val
));
hr
=
IXmlReader_GetLocalName
(
reader
,
&
val
,
NULL
);
...
...
@@ -1473,9 +1472,17 @@ static void test_read_element(void)
/* moving to attributes increases depth */
if
(
count
)
{
const
WCHAR
*
value
;
hr
=
IXmlReader_GetValue
(
reader
,
&
value
,
NULL
);
ok
(
*
value
==
0
,
"Unexpected value %s
\n
"
,
wine_dbgstr_w
(
value
));
hr
=
IXmlReader_MoveToFirstAttribute
(
reader
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
hr
=
IXmlReader_GetValue
(
reader
,
&
value
,
NULL
);
ok
(
*
value
!=
0
,
"Unexpected value %s
\n
"
,
wine_dbgstr_w
(
value
));
depth
=
123
;
hr
=
IXmlReader_GetDepth
(
reader
,
&
depth
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
...
...
@@ -1484,6 +1491,9 @@ static void test_read_element(void)
hr
=
IXmlReader_MoveToElement
(
reader
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
hr
=
IXmlReader_GetValue
(
reader
,
&
value
,
NULL
);
ok
(
*
value
==
0
,
"Unexpected value %s
\n
"
,
wine_dbgstr_w
(
value
));
depth
=
123
;
hr
=
IXmlReader_GetDepth
(
reader
,
&
depth
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
...
...
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