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
ad5340f6
Commit
ad5340f6
authored
Nov 24, 2011
by
Marcus Meissner
Committed by
Alexandre Julliard
Nov 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Check return value of CLSIDFromProgID (Coverity).
parent
da2089fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
session.c
dlls/winhttp/session.c
+6
-1
No files found.
dlls/winhttp/session.c
View file @
ad5340f6
...
...
@@ -423,6 +423,7 @@ BOOL set_server_for_hostname( connect_t *connect, LPCWSTR server, INTERNET_PORT
session
->
proxy_server
,
colon
-
session
->
proxy_server
-
1
))
{
heap_free
(
connect
->
servername
);
connect
->
sockaddr
.
ss_family
=
0xffff
;
if
(
!
(
connect
->
servername
=
heap_alloc
(
(
colon
-
session
->
proxy_server
+
1
)
*
sizeof
(
WCHAR
)
)))
{
...
...
@@ -444,6 +445,7 @@ BOOL set_server_for_hostname( connect_t *connect, LPCWSTR server, INTERNET_PORT
session
->
proxy_server
))
{
heap_free
(
connect
->
servername
);
connect
->
sockaddr
.
ss_family
=
0xffff
;
if
(
!
(
connect
->
servername
=
strdupW
(
session
->
proxy_server
)))
{
ret
=
FALSE
;
...
...
@@ -456,6 +458,7 @@ BOOL set_server_for_hostname( connect_t *connect, LPCWSTR server, INTERNET_PORT
else
if
(
server
)
{
heap_free
(
connect
->
servername
);
connect
->
sockaddr
.
ss_family
=
0xffff
;
if
(
!
(
connect
->
servername
=
strdupW
(
server
)))
{
ret
=
FALSE
;
...
...
@@ -1837,7 +1840,9 @@ static BOOL run_script( const BSTR script, const WCHAR *url, WINHTTP_PROXY_INFO
hostname
[
uc
.
dwHostNameLength
]
=
0
;
init
=
CoInitialize
(
NULL
);
CLSIDFromProgID
(
jscriptW
,
&
clsid
);
hr
=
CLSIDFromProgID
(
jscriptW
,
&
clsid
);
if
(
hr
!=
S_OK
)
goto
done
;
hr
=
CoCreateInstance
(
&
clsid
,
NULL
,
CLSCTX_INPROC_SERVER
|
CLSCTX_INPROC_HANDLER
,
&
IID_IActiveScript
,
(
void
**
)
&
engine
);
if
(
hr
!=
S_OK
)
goto
done
;
...
...
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