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
e5a48b2d
Commit
e5a48b2d
authored
Mar 11, 2013
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 11, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xmllite: Fix a test failure on Windows 8.
parent
88d7b66b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
reader.c
dlls/xmllite/reader.c
+2
-0
reader.c
dlls/xmllite/tests/reader.c
+5
-5
No files found.
dlls/xmllite/reader.c
View file @
e5a48b2d
...
...
@@ -2246,6 +2246,8 @@ static HRESULT WINAPI xmlreader_GetValue(IXmlReader* iface, LPCWSTR *value, UINT
TRACE
(
"(%p)->(%p %p)
\n
"
,
This
,
value
,
len
);
*
value
=
NULL
;
if
((
This
->
nodetype
==
XmlNodeType_Comment
&&
!
This
->
strvalues
[
StringValue_Value
].
str
)
||
is_reader_pending
(
This
))
{
...
...
dlls/xmllite/tests/reader.c
View file @
e5a48b2d
...
...
@@ -1238,16 +1238,16 @@ static void test_read_pending(void)
int
c
;
hr
=
pCreateXmlReader
(
&
IID_IXmlReader
,
(
void
**
)
&
reader
,
NULL
);
ok
(
hr
==
S_OK
,
"S_OK, got %08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"S_OK, got
0x
%08x
\n
"
,
hr
);
hr
=
IXmlReader_SetInput
(
reader
,
(
IUnknown
*
)
&
teststream
);
ok
(
hr
==
S_OK
,
"
Expected S_OK, got
%08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"
got 0x
%08x
\n
"
,
hr
);
/* first read call returns incomplete node, second attempt fails with E_PENDING */
stream_readcall
=
0
;
type
=
XmlNodeType_Element
;
hr
=
IXmlReader_Read
(
reader
,
&
type
);
ok
(
hr
==
S_OK
||
broken
(
hr
==
E_PENDING
),
"
Expected S_OK, got
%08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
||
broken
(
hr
==
E_PENDING
),
"
got 0x
%08x
\n
"
,
hr
);
/* newer versions are happy when it's enough data to detect node type,
older versions keep reading until it fails to read more */
ok
(
stream_readcall
==
1
||
broken
(
stream_readcall
>
1
),
"got %d
\n
"
,
stream_readcall
);
...
...
@@ -1257,8 +1257,8 @@ static void test_read_pending(void)
c
=
stream_readcall
;
value
=
(
void
*
)
0xdeadbeef
;
hr
=
IXmlReader_GetValue
(
reader
,
&
value
,
NULL
);
ok
(
hr
==
E_PENDING
,
"
Expected E_PENDING, got
%08x
\n
"
,
hr
);
ok
(
value
==
(
void
*
)
0xdeadbeef
,
"got %p
\n
"
,
value
);
ok
(
hr
==
E_PENDING
,
"
got 0x
%08x
\n
"
,
hr
);
ok
(
value
==
NULL
||
broken
(
value
==
(
void
*
)
0xdeadbeef
)
/* Win8 sets it to NULL */
,
"got %p
\n
"
,
value
);
ok
(
c
<
stream_readcall
||
broken
(
c
==
stream_readcall
),
"got %d, expected %d
\n
"
,
stream_readcall
,
c
+
1
);
IXmlReader_Release
(
reader
);
...
...
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