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
126c0abe
Commit
126c0abe
authored
Aug 20, 2008
by
Piotr Caban
Committed by
Alexandre Julliard
Aug 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Add error handling when reading from IStream.
parent
655155fe
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
saxreader.c
dlls/msxml3/saxreader.c
+19
-0
No files found.
dlls/msxml3/saxreader.c
View file @
126c0abe
...
...
@@ -1876,8 +1876,20 @@ static HRESULT WINAPI internal_parse(
if
(
hr
==
E_PENDING
)
continue
;
break
;
}
if
(
hr
!=
S_OK
)
{
IStream_Release
(
stream
);
break
;
}
data
=
HeapAlloc
(
GetProcessHeap
(),
0
,
dataInfo
.
cbSize
.
QuadPart
);
if
(
!
data
)
{
IStream_Release
(
stream
);
break
;
}
while
(
1
)
{
hr
=
IStream_Read
(
stream
,
data
,
...
...
@@ -1885,6 +1897,13 @@ static HRESULT WINAPI internal_parse(
if
(
hr
==
E_PENDING
)
continue
;
break
;
}
if
(
hr
!=
S_OK
)
{
HeapFree
(
GetProcessHeap
(),
0
,
data
);
IStream_Release
(
stream
);
break
;
}
hr
=
internal_parseBuffer
(
This
,
data
,
dataInfo
.
cbSize
.
QuadPart
,
vbInterface
);
HeapFree
(
GetProcessHeap
(),
0
,
data
);
...
...
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