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
99f5a055
Commit
99f5a055
authored
Sep 22, 2003
by
Mike McCormack
Committed by
Alexandre Julliard
Sep 22, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix logic problems with NETCON_connected.
parent
4acad25f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
netconnection.c
dlls/wininet/netconnection.c
+8
-4
No files found.
dlls/wininet/netconnection.c
View file @
99f5a055
...
...
@@ -224,7 +224,7 @@ BOOL NETCON_create(WININET_NETCONNECTION *connection, int domain,
*/
BOOL
NETCON_close
(
WININET_NETCONNECTION
*
connection
)
{
if
(
!
NETCON_connected
)
return
FALSE
;
if
(
!
NETCON_connected
(
connection
)
)
return
FALSE
;
if
(
!
connection
->
useSSL
)
{
int
result
;
...
...
@@ -255,13 +255,17 @@ BOOL NETCON_close(WININET_NETCONNECTION *connection)
BOOL
NETCON_connect
(
WININET_NETCONNECTION
*
connection
,
const
struct
sockaddr
*
serv_addr
,
socklen_t
addrlen
)
{
if
(
!
NETCON_connected
)
return
FALSE
;
if
(
!
NETCON_connected
(
connection
)
)
return
FALSE
;
if
(
!
connection
->
useSSL
)
{
int
result
;
result
=
connect
(
connection
->
socketFD
,
serv_addr
,
addrlen
);
if
(
result
==
-
1
)
{
close
(
connection
->
socketFD
);
connection
->
socketFD
=
-
1
;
return
FALSE
;
}
return
TRUE
;
}
else
...
...
@@ -297,7 +301,7 @@ BOOL NETCON_connect(WININET_NETCONNECTION *connection, const struct sockaddr *se
BOOL
NETCON_send
(
WININET_NETCONNECTION
*
connection
,
const
void
*
msg
,
size_t
len
,
int
flags
,
int
*
sent
/* out */
)
{
if
(
!
NETCON_connected
)
return
FALSE
;
if
(
!
NETCON_connected
(
connection
)
)
return
FALSE
;
if
(
!
connection
->
useSSL
)
{
*
sent
=
send
(
connection
->
socketFD
,
msg
,
len
,
flags
);
...
...
@@ -328,7 +332,7 @@ BOOL NETCON_send(WININET_NETCONNECTION *connection, const void *msg, size_t len,
BOOL
NETCON_recv
(
WININET_NETCONNECTION
*
connection
,
void
*
buf
,
size_t
len
,
int
flags
,
int
*
recvd
/* out */
)
{
if
(
!
NETCON_connected
)
return
FALSE
;
if
(
!
NETCON_connected
(
connection
)
)
return
FALSE
;
if
(
!
connection
->
useSSL
)
{
*
recvd
=
recv
(
connection
->
socketFD
,
buf
,
len
,
flags
);
...
...
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