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
aa714ca1
Commit
aa714ca1
authored
Nov 12, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Correctly handle NULL nschannel in channelbsc_load_stream (Coverity).
parent
03aae9e4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
navigate.c
dlls/mshtml/navigate.c
+8
-4
No files found.
dlls/mshtml/navigate.c
View file @
aa714ca1
...
...
@@ -1142,12 +1142,16 @@ HRESULT channelbsc_load_stream(nsChannelBSC *bscallback, IStream *stream)
{
HRESULT
hres
;
const
char
text_html
[]
=
"text/html"
;
if
(
!
bscallback
->
nschannel
)
{
ERR
(
"NULL nschannel
\n
"
);
return
E_FAIL
;
}
add_nsrequest
(
bscallback
);
bscallback
->
nschannel
->
content_type
=
heap_strdupA
(
"text/html"
);
if
(
!
bscallback
->
nschannel
->
content_type
)
return
E_OUTOFMEMORY
;
if
(
bscallback
->
nschannel
)
bscallback
->
nschannel
->
content_type
=
heap_strdupA
(
text_html
);
add_nsrequest
(
bscallback
);
hres
=
read_stream_data
(
bscallback
,
stream
);
IBindStatusCallback_OnStopBinding
(
STATUSCLB
(
&
bscallback
->
bsc
),
hres
,
ERROR_SUCCESS
);
...
...
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