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
d7d5d93e
Commit
d7d5d93e
authored
Apr 10, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 10, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Improve error handling (Coverity).
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
97fee99c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
stylesheet.c
dlls/msxml3/stylesheet.c
+8
-5
No files found.
dlls/msxml3/stylesheet.c
View file @
d7d5d93e
...
...
@@ -570,9 +570,8 @@ static HRESULT WINAPI xslprocessor_transform(
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
ret
);
if
(
!
ret
)
return
E_INVALIDARG
;
SysFreeString
(
This
->
outstr
);
if
(
!
ret
)
return
E_INVALIDARG
;
if
(
This
->
output_type
==
PROCESSOR_OUTPUT_STREAM
)
{
...
...
@@ -582,9 +581,12 @@ static HRESULT WINAPI xslprocessor_transform(
else
if
(
This
->
output_type
==
PROCESSOR_OUTPUT_PERSISTSTREAM
||
This
->
output_type
==
PROCESSOR_OUTPUT_RESPONSE
)
{
CreateStreamOnHGlobal
(
NULL
,
TRUE
,
(
IStream
**
)
&
stream
);
if
(
FAILED
(
hr
=
CreateStreamOnHGlobal
(
NULL
,
TRUE
,
(
IStream
**
)
&
stream
)))
return
hr
;
}
SysFreeString
(
This
->
outstr
);
hr
=
node_transform_node_params
(
get_node_obj
(
This
->
input
),
This
->
stylesheet
->
node
,
&
This
->
outstr
,
stream
,
&
This
->
params
);
if
(
SUCCEEDED
(
hr
))
...
...
@@ -612,7 +614,8 @@ static HRESULT WINAPI xslprocessor_transform(
DWORD
size
;
void
*
dest
;
GetHGlobalFromStream
(
src
,
&
hglobal
);
if
(
FAILED
(
hr
=
GetHGlobalFromStream
(
src
,
&
hglobal
)))
break
;
size
=
GlobalSize
(
hglobal
);
bound
.
lLbound
=
0
;
...
...
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