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
1233b4b2
Commit
1233b4b2
authored
Sep 18, 2007
by
Tijl Coosemans
Committed by
Alexandre Julliard
Sep 19, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32/tests: Don't wait for FD_CONNECT event when non-blocking connect() was successful.
parent
91f2a4d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
sock.c
dlls/ws2_32/tests/sock.c
+11
-11
No files found.
dlls/ws2_32/tests/sock.c
View file @
1233b4b2
...
...
@@ -650,17 +650,17 @@ static void WINAPI event_client ( client_params *par )
event
=
WSACreateEvent
();
WSAEventSelect
(
mem
->
s
,
event
,
FD_CONNECT
);
tmp
=
connect
(
mem
->
s
,
(
struct
sockaddr
*
)
&
mem
->
addr
,
sizeof
(
mem
->
addr
)
);
if
(
tmp
!=
0
&&
(
err
=
WSAGetLastError
()
)
!=
WSAEWOULDBLOCK
)
ok
(
0
,
"event_client (%x): connect error: %d
\n
"
,
id
,
err
);
tmp
=
WaitForSingleObject
(
event
,
INFINITE
);
ok
(
tmp
==
WAIT_OBJECT_0
,
"event_client (%x): wait for connect event failed: %d
\n
"
,
id
,
tmp
);
err
=
WSAEnumNetworkEvents
(
mem
->
s
,
event
,
&
wsa_events
);
wsa_ok
(
err
,
0
==
,
"event_client (%x): WSAEnumNetworkEvents error: %d
\n
"
);
err
=
wsa_events
.
iErrorCode
[
FD_CONNECT_BIT
]
;
ok
(
err
==
0
,
"event_client (%x): connect error: %d
\n
"
,
id
,
err
)
;
if
(
err
)
goto
out
;
if
(
tmp
!=
0
)
{
err
=
WSAGetLastError
(
);
ok
(
err
==
WSAEWOULDBLOCK
,
"event_client (%x): connect error: %d
\n
"
,
id
,
err
);
tmp
=
WaitForSingleObject
(
event
,
INFINITE
);
ok
(
tmp
==
WAIT_OBJECT_0
,
"event_client (%x): wait for connect event failed: %d
\n
"
,
id
,
tmp
);
err
=
WSAEnumNetworkEvents
(
mem
->
s
,
event
,
&
wsa_events
);
wsa_ok
(
err
,
0
==
,
"event_client (%x): WSAEnumNetworkEvents error: %d
\n
"
);
err
=
wsa_events
.
iErrorCode
[
FD_CONNECT_BIT
];
ok
(
err
==
0
,
"event_client (%x): connect error: %d
\n
"
,
id
,
err
)
;
if
(
err
)
goto
out
;
}
trace
(
"event_client (%x) connected
\n
"
,
id
);
...
...
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