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
948e7919
Commit
948e7919
authored
Aug 11, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Avoid using wineserver definitions.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d6d32434
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
socket.c
dlls/ws2_32/socket.c
+7
-5
ws2_32_private.h
dlls/ws2_32/ws2_32_private.h
+0
-1
afd.h
include/wine/afd.h
+3
-4
No files found.
dlls/ws2_32/socket.c
View file @
948e7919
...
...
@@ -33,6 +33,8 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
winsock
);
WINE_DECLARE_DEBUG_CHANNEL
(
winediag
);
#define TIMEOUT_INFINITE _I64_MAX
const
struct
unix_funcs
*
unix_funcs
=
NULL
;
static
const
WSAPROTOCOL_INFOW
supported_protocols
[]
=
...
...
@@ -718,7 +720,7 @@ SOCKET WINAPI accept( SOCKET s, struct sockaddr *addr, int *len )
{
IO_STATUS_BLOCK
io
;
NTSTATUS
status
;
obj_handle_t
accept_handle
;
ULONG
accept_handle
;
HANDLE
sync_event
;
SOCKET
ret
;
...
...
@@ -740,7 +742,7 @@ SOCKET WINAPI accept( SOCKET s, struct sockaddr *addr, int *len )
return
INVALID_SOCKET
;
}
ret
=
HANDLE2SOCKET
(
wine_server_ptr_handle
(
accept_handle
))
;
ret
=
accept_handle
;
if
(
!
socket_list_add
(
ret
))
{
CloseHandle
(
SOCKET2HANDLE
(
ret
)
);
...
...
@@ -3138,8 +3140,8 @@ int WINAPI WSAAsyncSelect( SOCKET s, HWND window, UINT message, LONG mask )
TRACE
(
"socket %#lx, window %p, message %#x, mask %#x
\n
"
,
s
,
window
,
message
,
mask
);
params
.
handle
=
wine_server_obj_handle
(
(
HANDLE
)
s
)
;
params
.
window
=
wine_server_user_handle
(
window
);
params
.
handle
=
s
;
params
.
window
=
HandleToULong
(
window
);
params
.
message
=
message
;
params
.
mask
=
afd_poll_flag_from_win32
(
mask
);
...
...
@@ -3500,7 +3502,7 @@ SOCKET WINAPI WSAAccept( SOCKET s, struct sockaddr *addr, int *addrlen,
case
CF_DEFER
:
{
obj_handle_t
server_handle
=
cs
;
ULONG
server_handle
=
cs
;
IO_STATUS_BLOCK
io
;
NTSTATUS
status
;
...
...
dlls/ws2_32/ws2_32_private.h
View file @
948e7919
...
...
@@ -48,7 +48,6 @@
#include "iphlpapi.h"
#include "ip2string.h"
#include "wine/afd.h"
#include "wine/server.h"
#include "wine/debug.h"
#include "wine/exception.h"
#include "wine/heap.h"
...
...
include/wine/afd.h
View file @
948e7919
...
...
@@ -24,7 +24,6 @@
#include <winternl.h>
#include <winioctl.h>
#include <mswsock.h>
#include "wine/server_protocol.h"
#ifdef USE_WS_PREFIX
# define WS(x) WS_##x
...
...
@@ -241,7 +240,7 @@ struct afd_create_params
struct
afd_accept_into_params
{
obj_handle_t
accept_handle
;
ULONG
accept_handle
;
unsigned
int
recv_len
,
local_len
;
};
...
...
@@ -286,8 +285,8 @@ struct afd_transmit_params
struct
afd_message_select_params
{
obj_handle_t
handle
;
user_handle_t
window
;
ULONG
handle
;
ULONG
window
;
unsigned
int
message
;
int
mask
;
};
...
...
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