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
f58c709b
Commit
f58c709b
authored
Jan 24, 2011
by
Mike Kaplinskiy
Committed by
Alexandre Julliard
Jan 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Fix connect failures on newer kernels.
parent
a6de06aa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
sock.c
dlls/ws2_32/tests/sock.c
+1
-1
sock.c
server/sock.c
+7
-7
No files found.
dlls/ws2_32/tests/sock.c
View file @
f58c709b
...
@@ -4026,7 +4026,7 @@ static void test_ConnectEx(void)
...
@@ -4026,7 +4026,7 @@ static void test_ConnectEx(void)
closesocket
(
listener
);
closesocket
(
listener
);
listener
=
INVALID_SOCKET
;
listener
=
INVALID_SOCKET
;
address
.
sin_port
=
1
;
address
.
sin_port
=
htons
(
1
)
;
bret
=
pConnectEx
(
connector
,
(
struct
sockaddr
*
)
&
address
,
addrlen
,
NULL
,
0
,
&
bytesReturned
,
&
overlapped
);
bret
=
pConnectEx
(
connector
,
(
struct
sockaddr
*
)
&
address
,
addrlen
,
NULL
,
0
,
&
bytesReturned
,
&
overlapped
);
ok
(
bret
==
FALSE
&&
GetLastError
(),
"ConnectEx to bad destination failed: "
ok
(
bret
==
FALSE
&&
GetLastError
(),
"ConnectEx to bad destination failed: "
...
...
server/sock.c
View file @
f58c709b
...
@@ -388,18 +388,18 @@ static void sock_poll_event( struct fd *fd, int event )
...
@@ -388,18 +388,18 @@ static void sock_poll_event( struct fd *fd, int event )
if
(
sock
->
state
&
FD_CONNECT
)
if
(
sock
->
state
&
FD_CONNECT
)
{
{
/* connecting */
if
(
event
&
(
POLLERR
|
POLLHUP
))
if
(
event
&
POLLOUT
)
{
{
/* we got connected */
/* we didn't get connected? */
sock
->
state
|=
FD_WINE_CONNECTED
|
FD_READ
|
FD_WRITE
;
sock
->
state
&=
~
FD_CONNECT
;
sock
->
state
&=
~
FD_CONNECT
;
event
&=
~
POLLOUT
;
error
=
sock_error
(
fd
);
}
}
else
if
(
event
&
(
POLLERR
|
POLLHUP
)
)
else
if
(
event
&
POLLOUT
)
{
{
/* we didn't get connected? */
/* we got connected */
sock
->
state
|=
FD_WINE_CONNECTED
|
FD_READ
|
FD_WRITE
;
sock
->
state
&=
~
FD_CONNECT
;
sock
->
state
&=
~
FD_CONNECT
;
error
=
sock_error
(
fd
);
}
}
}
}
else
if
(
sock
->
state
&
FD_WINE_LISTENING
)
else
if
(
sock
->
state
&
FD_WINE_LISTENING
)
...
...
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