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
0a4a7c43
Commit
0a4a7c43
authored
Jun 09, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Return WSAEOPNOTSUPP in FIOASYNC.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b8bb6bae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
34 deletions
+16
-34
socket.c
dlls/ws2_32/socket.c
+0
-5
sock.c
dlls/ws2_32/tests/sock.c
+16
-29
No files found.
dlls/ws2_32/socket.c
View file @
0a4a7c43
...
...
@@ -3276,11 +3276,6 @@ INT WINAPI WSAIoctl(SOCKET s, DWORD code, LPVOID in_buff, DWORD in_size, LPVOID
return
ret
?
-
1
:
0
;
}
case
WS_FIOASYNC
:
WARN
(
"Warning: WS1.1 shouldn't be using async I/O
\n
"
);
SetLastError
(
WSAEINVAL
);
return
SOCKET_ERROR
;
case
WS_SIO_GET_INTERFACE_LIST
:
{
DWORD
ret
;
...
...
dlls/ws2_32/tests/sock.c
View file @
0a4a7c43
...
...
@@ -4136,35 +4136,27 @@ static void test_unsupported_ioctls(void)
size
=
0xdeadbeef
;
ret
=
WSAIoctl
(
s
,
codes
[
i
],
NULL
,
0
,
NULL
,
0
,
&
size
,
NULL
,
NULL
);
ok
(
ret
==
-
1
,
"expected failure
\n
"
);
todo_wine_if
(
codes
[
i
]
==
FIOASYNC
)
ok
(
WSAGetLastError
()
==
WSAEOPNOTSUPP
,
"got error %u
\n
"
,
WSAGetLastError
());
todo_wine_if
(
codes
[
i
]
==
FIOASYNC
)
ok
(
!
size
,
"got size %u
\n
"
,
size
);
ok
(
WSAGetLastError
()
==
WSAEOPNOTSUPP
,
"got error %u
\n
"
,
WSAGetLastError
());
ok
(
!
size
,
"got size %u
\n
"
,
size
);
WSASetLastError
(
0xdeadbeef
);
size
=
0xdeadbeef
;
overlapped
.
Internal
=
0xdeadbeef
;
overlapped
.
InternalHigh
=
0xdeadbeef
;
ret
=
WSAIoctl
(
s
,
codes
[
i
],
NULL
,
0
,
NULL
,
0
,
&
size
,
&
overlapped
,
NULL
);
ok
(
ret
==
-
1
,
"expected failure
\n
"
);
todo_wine_if
(
codes
[
i
]
==
FIOASYNC
)
ok
(
WSAGetLastError
()
==
ERROR_IO_PENDING
,
"got error %u
\n
"
,
WSAGetLastError
());
ok
(
ret
==
-
1
,
"expected failure
\n
"
);
ok
(
WSAGetLastError
()
==
ERROR_IO_PENDING
,
"got error %u
\n
"
,
WSAGetLastError
());
ok
(
size
==
0xdeadbeef
,
"got size %u
\n
"
,
size
);
ret
=
GetQueuedCompletionStatus
(
port
,
&
size
,
&
key
,
&
overlapped_ptr
,
0
);
ok
(
!
ret
,
"expected failure
\n
"
);
todo_wine_if
(
codes
[
i
]
==
FIOASYNC
)
ok
(
GetLastError
()
==
ERROR_NOT_SUPPORTED
,
"got error %u
\n
"
,
GetLastError
());
todo_wine_if
(
codes
[
i
]
==
FIOASYNC
)
ok
(
!
size
,
"got size %u
\n
"
,
size
);
ok
(
GetLastError
()
==
ERROR_NOT_SUPPORTED
,
"got error %u
\n
"
,
GetLastError
());
ok
(
!
size
,
"got size %u
\n
"
,
size
);
ok
(
key
==
123
,
"got key %Iu
\n
"
,
key
);
todo_wine_if
(
codes
[
i
]
==
FIOASYNC
)
ok
(
overlapped_ptr
==
&
overlapped
,
"got overlapped %p
\n
"
,
overlapped_ptr
);
todo_wine_if
(
codes
[
i
]
==
FIOASYNC
)
ok
((
NTSTATUS
)
overlapped
.
Internal
==
STATUS_NOT_SUPPORTED
,
"got status %#x
\n
"
,
(
NTSTATUS
)
overlapped
.
Internal
);
todo_wine_if
(
codes
[
i
]
==
FIOASYNC
)
ok
(
!
overlapped
.
InternalHigh
,
"got size %Iu
\n
"
,
overlapped
.
InternalHigh
);
ok
(
overlapped_ptr
==
&
overlapped
,
"got overlapped %p
\n
"
,
overlapped_ptr
);
ok
((
NTSTATUS
)
overlapped
.
Internal
==
STATUS_NOT_SUPPORTED
,
"got status %#x
\n
"
,
(
NTSTATUS
)
overlapped
.
Internal
);
ok
(
!
overlapped
.
InternalHigh
,
"got size %Iu
\n
"
,
overlapped
.
InternalHigh
);
CloseHandle
(
port
);
closesocket
(
s
);
...
...
@@ -4179,20 +4171,15 @@ static void test_unsupported_ioctls(void)
size
=
0xdeadbeef
;
ret
=
WSAIoctl
(
s
,
codes
[
i
],
NULL
,
0
,
NULL
,
0
,
&
size
,
&
overlapped
,
socket_apc
);
ok
(
ret
==
-
1
,
"expected failure
\n
"
);
todo_wine_if
(
codes
[
i
]
==
FIOASYNC
)
ok
(
WSAGetLastError
()
==
ERROR_IO_PENDING
,
"got error %u
\n
"
,
WSAGetLastError
());
ok
(
WSAGetLastError
()
==
ERROR_IO_PENDING
,
"got error %u
\n
"
,
WSAGetLastError
());
ok
(
size
==
0xdeadbeef
,
"got size %u
\n
"
,
size
);
ret
=
SleepEx
(
0
,
TRUE
);
todo_wine_if
(
codes
[
i
]
==
FIOASYNC
)
ok
(
ret
==
WAIT_IO_COMPLETION
,
"got %d
\n
"
,
ret
);
if
(
ret
==
WAIT_IO_COMPLETION
)
{
ok
(
apc_count
==
1
,
"APC was called %u times
\n
"
,
apc_count
);
ok
(
apc_error
==
WSAEOPNOTSUPP
,
"got APC error %u
\n
"
,
apc_error
);
ok
(
!
apc_size
,
"got APC size %u
\n
"
,
apc_size
);
ok
(
apc_overlapped
==
&
overlapped
,
"got APC overlapped %p
\n
"
,
apc_overlapped
);
}
ok
(
ret
==
WAIT_IO_COMPLETION
,
"got %d
\n
"
,
ret
);
ok
(
apc_count
==
1
,
"APC was called %u times
\n
"
,
apc_count
);
ok
(
apc_error
==
WSAEOPNOTSUPP
,
"got APC error %u
\n
"
,
apc_error
);
ok
(
!
apc_size
,
"got APC size %u
\n
"
,
apc_size
);
ok
(
apc_overlapped
==
&
overlapped
,
"got APC overlapped %p
\n
"
,
apc_overlapped
);
closesocket
(
s
);
winetest_pop_context
();
...
...
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