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
0e2a998a
Commit
0e2a998a
authored
Jun 15, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Use IOCTL_AFD_WINE_MESSAGE_SELECT.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ce31d125
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
17 deletions
+16
-17
socket.c
dlls/ws2_32/socket.c
+16
-17
No files found.
dlls/ws2_32/socket.c
View file @
0e2a998a
...
...
@@ -4508,29 +4508,28 @@ BOOL WINAPI WSAGetOverlappedResult( SOCKET s, LPWSAOVERLAPPED lpOverlapped,
/***********************************************************************
* WSAAsyncSelect
(WS2_32.101
)
* WSAAsyncSelect
(ws2_32.@
)
*/
INT
WINAPI
WSAAsyncSelect
(
SOCKET
s
,
HWND
hWnd
,
UINT
uMsg
,
LONG
lEvent
)
int
WINAPI
WSAAsyncSelect
(
SOCKET
s
,
HWND
window
,
UINT
message
,
LONG
mask
)
{
int
ret
;
struct
afd_message_select_params
params
;
IO_STATUS_BLOCK
io
;
NTSTATUS
status
;
TRACE
(
"%04lx, hWnd %p, uMsg %08x, event %08x
\n
"
,
s
,
hWnd
,
uMsg
,
lEvent
);
TRACE
(
"socket %#lx, window %p, message %#x, mask %#x
\n
"
,
s
,
window
,
message
,
mask
);
SERVER_START_REQ
(
set_socket_event
)
{
req
->
handle
=
wine_server_obj_handle
(
SOCKET2HANDLE
(
s
)
);
req
->
mask
=
lEvent
;
req
->
event
=
0
;
req
->
window
=
wine_server_user_handle
(
hWnd
);
req
->
msg
=
uMsg
;
ret
=
wine_server_call
(
req
);
}
SERVER_END_REQ
;
if
(
!
ret
)
return
0
;
SetLastError
(
WSAEINVAL
);
return
SOCKET_ERROR
;
params
.
handle
=
wine_server_obj_handle
(
(
HANDLE
)
s
);
params
.
window
=
wine_server_user_handle
(
window
);
params
.
message
=
message
;
params
.
mask
=
afd_poll_flag_from_win32
(
mask
);
status
=
NtDeviceIoControlFile
(
(
HANDLE
)
s
,
NULL
,
NULL
,
NULL
,
&
io
,
IOCTL_AFD_WINE_MESSAGE_SELECT
,
&
params
,
sizeof
(
params
),
NULL
,
0
);
SetLastError
(
NtStatusToWSAError
(
status
)
);
return
status
?
-
1
:
0
;
}
/***********************************************************************
* WSACreateEvent (WS2_32.31)
*
...
...
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