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
809959de
Commit
809959de
authored
Sep 21, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: It's not a failure to get S_FALSE from IStream::Read().
parent
835171c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
17 deletions
+26
-17
saxreader.c
dlls/msxml3/saxreader.c
+26
-17
No files found.
dlls/msxml3/saxreader.c
View file @
809959de
...
...
@@ -1873,14 +1873,14 @@ static HRESULT internal_parseStream(saxreader *This, IStream *stream, BOOL vbInt
HRESULT
hr
;
ULONG
dataRead
;
char
data
[
1024
];
int
ret
;
dataRead
=
0
;
hr
=
IStream_Read
(
stream
,
data
,
sizeof
(
data
),
&
dataRead
);
if
(
hr
!=
S_OK
)
return
hr
;
if
(
FAILED
(
hr
))
return
hr
;
hr
=
SAXLocator_create
(
This
,
&
locator
,
vbInterface
);
if
(
FAILED
(
hr
))
return
hr
;
if
(
FAILED
(
hr
))
return
hr
;
locator
->
pParserCtxt
=
xmlCreatePushParserCtxt
(
&
locator
->
saxreader
->
sax
,
locator
,
...
...
@@ -1892,25 +1892,34 @@ static HRESULT internal_parseStream(saxreader *This, IStream *stream, BOOL vbInt
}
This
->
isParsing
=
TRUE
;
while
(
1
)
{
hr
=
IStream_Read
(
stream
,
data
,
sizeof
(
data
),
&
dataRead
);
if
(
hr
!=
S_OK
)
break
;
if
(
xmlParseChunk
(
locator
->
pParserCtxt
,
data
,
dataRead
,
0
)
!=
XML_ERR_OK
)
hr
=
E_FAIL
;
else
hr
=
locator
->
ret
;
if
(
dataRead
!=
sizeof
(
data
))
{
ret
=
xmlParseChunk
(
locator
->
pParserCtxt
,
data
,
0
,
1
);
hr
=
ret
!=
XML_ERR_OK
?
E_FAIL
:
locator
->
ret
;
}
else
{
while
(
1
)
{
dataRead
=
0
;
hr
=
IStream_Read
(
stream
,
data
,
sizeof
(
data
),
&
dataRead
);
if
(
FAILED
(
hr
))
break
;
if
(
hr
!=
S_OK
)
break
;
ret
=
xmlParseChunk
(
locator
->
pParserCtxt
,
data
,
dataRead
,
0
);
hr
=
ret
!=
XML_ERR_OK
?
E_FAIL
:
locator
->
ret
;
if
(
dataRead
!=
sizeof
(
data
))
{
if
(
xmlParseChunk
(
locator
->
pParserCtxt
,
data
,
0
,
1
)
!=
XML_ERR_OK
)
hr
=
E_FAIL
;
else
hr
=
locator
->
ret
;
if
(
hr
!=
S_OK
)
break
;
break
;
if
(
dataRead
!=
sizeof
(
data
))
{
ret
=
xmlParseChunk
(
locator
->
pParserCtxt
,
data
,
0
,
1
);
hr
=
ret
!=
XML_ERR_OK
?
E_FAIL
:
locator
->
ret
;
break
;
}
}
}
This
->
isParsing
=
FALSE
;
xmlFreeParserCtxt
(
locator
->
pParserCtxt
);
...
...
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