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
35ca8620
Commit
35ca8620
authored
Apr 05, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 05, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Use register_async for WS2_async_send.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
57e93b72
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
25 deletions
+8
-25
socket.c
dlls/ws2_32/socket.c
+8
-25
No files found.
dlls/ws2_32/socket.c
View file @
35ca8620
...
...
@@ -3592,19 +3592,8 @@ static BOOL WINAPI WS2_ConnectEx(SOCKET s, const struct WS_sockaddr* name, int n
wsa
->
iovec
[
0
].
iov_base
=
sendBuf
;
wsa
->
iovec
[
0
].
iov_len
=
sendBufLen
;
SERVER_START_REQ
(
register_async
)
{
req
->
type
=
ASYNC_TYPE_WRITE
;
req
->
async
.
handle
=
wine_server_obj_handle
(
wsa
->
hSocket
);
req
->
async
.
callback
=
wine_server_client_ptr
(
WS2_async_send
);
req
->
async
.
iosb
=
wine_server_client_ptr
(
iosb
);
req
->
async
.
arg
=
wine_server_client_ptr
(
wsa
);
req
->
async
.
event
=
wine_server_obj_handle
(
ov
->
hEvent
);
req
->
async
.
cvalue
=
cvalue
;
status
=
wine_server_call
(
req
);
}
SERVER_END_REQ
;
status
=
register_async
(
ASYNC_TYPE_WRITE
,
wsa
->
hSocket
,
WS2_async_send
,
wsa
,
ov
->
hEvent
,
NULL
,
(
void
*
)
cvalue
,
iosb
);
if
(
status
!=
STATUS_PENDING
)
HeapFree
(
GetProcessHeap
(),
0
,
wsa
);
/* If the connect already failed */
...
...
@@ -5609,18 +5598,12 @@ static int WS2_sendto( SOCKET s, LPWSABUF lpBuffers, DWORD dwBufferCount,
iosb
->
u
.
Status
=
STATUS_PENDING
;
iosb
->
Information
=
n
==
-
1
?
0
:
n
;
SERVER_START_REQ
(
register_async
)
{
req
->
type
=
ASYNC_TYPE_WRITE
;
req
->
async
.
handle
=
wine_server_obj_handle
(
wsa
->
hSocket
);
req
->
async
.
callback
=
wine_server_client_ptr
(
WS2_async_send
);
req
->
async
.
iosb
=
wine_server_client_ptr
(
iosb
);
req
->
async
.
arg
=
wine_server_client_ptr
(
wsa
);
req
->
async
.
event
=
wine_server_obj_handle
(
lpCompletionRoutine
?
0
:
lpOverlapped
->
hEvent
);
req
->
async
.
cvalue
=
cvalue
;
err
=
wine_server_call
(
req
);
}
SERVER_END_REQ
;
if
(
wsa
->
completion_func
)
err
=
register_async
(
ASYNC_TYPE_WRITE
,
wsa
->
hSocket
,
WS2_async_send
,
wsa
,
NULL
,
ws2_async_apc
,
wsa
,
iosb
);
else
err
=
register_async
(
ASYNC_TYPE_WRITE
,
wsa
->
hSocket
,
WS2_async_send
,
wsa
,
lpOverlapped
->
hEvent
,
NULL
,
(
void
*
)
cvalue
,
iosb
);
/* Enable the event only after starting the async. The server will deliver it as soon as
the async is done. */
...
...
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