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
bf1da4c8
Commit
bf1da4c8
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_connect.
parent
cff77d60
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
9 deletions
+7
-9
http.c
dlls/wininet/http.c
+3
-2
internet.h
dlls/wininet/internet.h
+1
-1
netconnection.c
dlls/wininet/netconnection.c
+3
-6
No files found.
dlls/wininet/http.c
View file @
bf1da4c8
...
...
@@ -4361,8 +4361,9 @@ static BOOL HTTP_OpenConnection(http_request_t *lpwhr)
goto
lend
;
}
if
(
!
NETCON_connect
(
&
lpwhr
->
netConnection
,
(
struct
sockaddr
*
)
&
lpwhs
->
socketAddress
,
lpwhs
->
sa_len
))
res
=
NETCON_connect
(
&
lpwhr
->
netConnection
,
(
struct
sockaddr
*
)
&
lpwhs
->
socketAddress
,
lpwhs
->
sa_len
);
if
(
res
!=
ERROR_SUCCESS
)
goto
lend
;
if
(
lpwhr
->
hdr
.
dwFlags
&
INTERNET_FLAG_SECURE
)
...
...
dlls/wininet/internet.h
View file @
bf1da4c8
...
...
@@ -433,7 +433,7 @@ void NETCON_unload(void);
DWORD
NETCON_create
(
WININET_NETCONNECTION
*
connection
,
int
domain
,
int
type
,
int
protocol
);
BOOL
NETCON_close
(
WININET_NETCONNECTION
*
connection
);
BOOL
NETCON_connect
(
WININET_NETCONNECTION
*
connection
,
const
struct
sockaddr
*
serv_addr
,
DWORD
NETCON_connect
(
WININET_NETCONNECTION
*
connection
,
const
struct
sockaddr
*
serv_addr
,
unsigned
int
addrlen
);
BOOL
NETCON_secure_connect
(
WININET_NETCONNECTION
*
connection
,
LPCWSTR
hostname
);
BOOL
NETCON_send
(
WININET_NETCONNECTION
*
connection
,
const
void
*
msg
,
size_t
len
,
int
flags
,
...
...
dlls/wininet/netconnection.c
View file @
bf1da4c8
...
...
@@ -532,25 +532,22 @@ fail:
* NETCON_connect
* Connects to the specified address.
*/
BOOL
NETCON_connect
(
WININET_NETCONNECTION
*
connection
,
const
struct
sockaddr
*
serv_addr
,
DWORD
NETCON_connect
(
WININET_NETCONNECTION
*
connection
,
const
struct
sockaddr
*
serv_addr
,
unsigned
int
addrlen
)
{
int
result
;
if
(
!
NETCON_connected
(
connection
))
return
FALSE
;
result
=
connect
(
connection
->
socketFD
,
serv_addr
,
addrlen
);
if
(
result
==
-
1
)
{
WARN
(
"Unable to connect to host (%s)
\n
"
,
strerror
(
errno
));
INTERNET_SetLastError
(
sock_get_error
(
errno
));
closesocket
(
connection
->
socketFD
);
connection
->
socketFD
=
-
1
;
return
FALSE
;
return
sock_get_error
(
errno
)
;
}
return
TRUE
;
return
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