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
c55d0a85
Commit
c55d0a85
authored
Nov 30, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 30, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Directly return error status from NETCON_close.
parent
36cb1ef3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
internet.h
dlls/wininet/internet.h
+1
-1
netconnection.c
dlls/wininet/netconnection.c
+4
-7
No files found.
dlls/wininet/internet.h
View file @
c55d0a85
...
...
@@ -432,7 +432,7 @@ BOOL NETCON_init(WININET_NETCONNECTION *connnection, BOOL useSSL);
void
NETCON_unload
(
void
);
DWORD
NETCON_create
(
WININET_NETCONNECTION
*
connection
,
int
domain
,
int
type
,
int
protocol
);
BOOL
NETCON_close
(
WININET_NETCONNECTION
*
connection
);
DWORD
NETCON_close
(
WININET_NETCONNECTION
*
connection
);
DWORD
NETCON_connect
(
WININET_NETCONNECTION
*
connection
,
const
struct
sockaddr
*
serv_addr
,
unsigned
int
addrlen
);
DWORD
NETCON_secure_connect
(
WININET_NETCONNECTION
*
connection
,
LPCWSTR
hostname
);
...
...
dlls/wininet/netconnection.c
View file @
c55d0a85
...
...
@@ -404,11 +404,11 @@ DWORD NETCON_create(WININET_NETCONNECTION *connection, int domain,
* NETCON_close
* Basically calls 'close()' unless we should use SSL
*/
BOOL
NETCON_close
(
WININET_NETCONNECTION
*
connection
)
DWORD
NETCON_close
(
WININET_NETCONNECTION
*
connection
)
{
int
result
;
if
(
!
NETCON_connected
(
connection
))
return
FALSE
;
if
(
!
NETCON_connected
(
connection
))
return
ERROR_SUCCESS
;
#ifdef SONAME_LIBSSL
if
(
connection
->
useSSL
)
...
...
@@ -425,11 +425,8 @@ BOOL NETCON_close(WININET_NETCONNECTION *connection)
connection
->
socketFD
=
-
1
;
if
(
result
==
-
1
)
{
INTERNET_SetLastError
(
sock_get_error
(
errno
));
return
FALSE
;
}
return
TRUE
;
return
sock_get_error
(
errno
);
return
ERROR_SUCCESS
;
}
#ifdef SONAME_LIBSSL
static
BOOL
check_hostname
(
X509
*
cert
,
char
*
hostname
)
...
...
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