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
c6806e3f
Commit
c6806e3f
authored
Sep 24, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Sep 25, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Translate SIO_ADDRESS_LIST_CHANGE into a proper NT ioctl.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8fb897a5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
socket.c
dlls/ws2_32/socket.c
+4
-0
afd.h
include/wine/afd.h
+2
-0
sock.c
server/sock.c
+2
-1
No files found.
dlls/ws2_32/socket.c
View file @
c6806e3f
...
...
@@ -5164,6 +5164,10 @@ INT WINAPI WSAIoctl(SOCKET s, DWORD code, LPVOID in_buff, DWORD in_size, LPVOID
case
0x667e
:
/* Netscape tries hard to use bogus ioctl 0x667e */
SetLastError
(
WSAEOPNOTSUPP
);
return
SOCKET_ERROR
;
case
WS_SIO_ADDRESS_LIST_CHANGE
:
code
=
IOCTL_AFD_ADDRESS_LIST_CHANGE
;
status
=
WSAEOPNOTSUPP
;
break
;
default:
status
=
WSAEOPNOTSUPP
;
break
;
...
...
include/wine/afd.h
View file @
c6806e3f
...
...
@@ -25,6 +25,8 @@
#define IOCTL_AFD_CREATE CTL_CODE(FILE_DEVICE_NETWORK, 200, METHOD_BUFFERED, FILE_WRITE_ACCESS)
#define IOCTL_AFD_ADDRESS_LIST_CHANGE CTL_CODE(FILE_DEVICE_NETWORK, 323, METHOD_BUFFERED, 0)
struct
afd_create_params
{
int
family
,
type
,
protocol
;
...
...
server/sock.c
View file @
c6806e3f
...
...
@@ -562,7 +562,7 @@ static int sock_ioctl( struct fd *fd, ioctl_code_t code, struct async *async )
return
0
;
}
case
WS_SIO
_ADDRESS_LIST_CHANGE
:
case
IOCTL_AFD
_ADDRESS_LIST_CHANGE
:
if
((
sock
->
state
&
FD_WINE_NONBLOCKING
)
&&
async_is_blocking
(
async
))
{
set_win32_error
(
WSAEWOULDBLOCK
);
...
...
@@ -572,6 +572,7 @@ static int sock_ioctl( struct fd *fd, ioctl_code_t code, struct async *async )
queue_async
(
&
sock
->
ifchange_q
,
async
);
set_error
(
STATUS_PENDING
);
return
1
;
default:
set_error
(
STATUS_NOT_SUPPORTED
);
return
0
;
...
...
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