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
b8bb6bae
Commit
b8bb6bae
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 SIO_FLUSH.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ee03ed09
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
21 deletions
+11
-21
socket.c
dlls/ws2_32/socket.c
+0
-4
sock.c
dlls/ws2_32/tests/sock.c
+11
-17
No files found.
dlls/ws2_32/socket.c
View file @
b8bb6bae
...
@@ -3369,10 +3369,6 @@ INT WINAPI WSAIoctl(SOCKET s, DWORD code, LPVOID in_buff, DWORD in_size, LPVOID
...
@@ -3369,10 +3369,6 @@ INT WINAPI WSAIoctl(SOCKET s, DWORD code, LPVOID in_buff, DWORD in_size, LPVOID
}
}
}
}
case
WS_SIO_FLUSH
:
FIXME
(
"SIO_FLUSH: stub.
\n
"
);
break
;
case
WS_SIO_GET_EXTENSION_FUNCTION_POINTER
:
case
WS_SIO_GET_EXTENSION_FUNCTION_POINTER
:
{
{
#define EXTENSION_FUNCTION(x, y) { x, y, #y },
#define EXTENSION_FUNCTION(x, y) { x, y, #y },
...
...
dlls/ws2_32/tests/sock.c
View file @
b8bb6bae
...
@@ -4135,9 +4135,8 @@ static void test_unsupported_ioctls(void)
...
@@ -4135,9 +4135,8 @@ static void test_unsupported_ioctls(void)
WSASetLastError
(
0xdeadbeef
);
WSASetLastError
(
0xdeadbeef
);
size
=
0xdeadbeef
;
size
=
0xdeadbeef
;
ret
=
WSAIoctl
(
s
,
codes
[
i
],
NULL
,
0
,
NULL
,
0
,
&
size
,
NULL
,
NULL
);
ret
=
WSAIoctl
(
s
,
codes
[
i
],
NULL
,
0
,
NULL
,
0
,
&
size
,
NULL
,
NULL
);
todo_wine_if
(
codes
[
i
]
==
SIO_FLUSH
)
ok
(
ret
==
-
1
,
"expected failure
\n
"
);
ok
(
ret
==
-
1
,
"expected failure
\n
"
);
todo_wine_if
(
codes
[
i
]
==
FIOASYNC
)
todo_wine_if
(
codes
[
i
]
==
FIOASYNC
||
codes
[
i
]
==
SIO_FLUSH
)
ok
(
WSAGetLastError
()
==
WSAEOPNOTSUPP
,
"got error %u
\n
"
,
WSAGetLastError
());
ok
(
WSAGetLastError
()
==
WSAEOPNOTSUPP
,
"got error %u
\n
"
,
WSAGetLastError
());
todo_wine_if
(
codes
[
i
]
==
FIOASYNC
)
todo_wine_if
(
codes
[
i
]
==
FIOASYNC
)
ok
(
!
size
,
"got size %u
\n
"
,
size
);
ok
(
!
size
,
"got size %u
\n
"
,
size
);
...
@@ -4147,24 +4146,21 @@ static void test_unsupported_ioctls(void)
...
@@ -4147,24 +4146,21 @@ static void test_unsupported_ioctls(void)
overlapped
.
Internal
=
0xdeadbeef
;
overlapped
.
Internal
=
0xdeadbeef
;
overlapped
.
InternalHigh
=
0xdeadbeef
;
overlapped
.
InternalHigh
=
0xdeadbeef
;
ret
=
WSAIoctl
(
s
,
codes
[
i
],
NULL
,
0
,
NULL
,
0
,
&
size
,
&
overlapped
,
NULL
);
ret
=
WSAIoctl
(
s
,
codes
[
i
],
NULL
,
0
,
NULL
,
0
,
&
size
,
&
overlapped
,
NULL
);
todo_wine_if
(
codes
[
i
]
==
SIO_FLUSH
)
ok
(
ret
==
-
1
,
"expected failure
\n
"
);
ok
(
ret
==
-
1
,
"expected failure
\n
"
);
todo_wine_if
(
codes
[
i
]
==
FIOASYNC
||
codes
[
i
]
==
SIO_FLUSH
)
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
());
todo_wine_if
(
codes
[
i
]
==
SIO_FLUSH
)
ok
(
size
==
0xdeadbeef
,
"got size %u
\n
"
,
size
);
ok
(
size
==
0xdeadbeef
,
"got size %u
\n
"
,
size
);
ret
=
GetQueuedCompletionStatus
(
port
,
&
size
,
&
key
,
&
overlapped_ptr
,
0
);
ret
=
GetQueuedCompletionStatus
(
port
,
&
size
,
&
key
,
&
overlapped_ptr
,
0
);
todo_wine_if
(
codes
[
i
]
==
SIO_FLUSH
)
ok
(
!
ret
,
"expected failure
\n
"
);
ok
(
!
ret
,
"expected failure
\n
"
);
todo_wine_if
(
codes
[
i
]
==
FIOASYNC
)
todo_wine_if
(
codes
[
i
]
==
FIOASYNC
||
codes
[
i
]
==
SIO_FLUSH
)
ok
(
GetLastError
()
==
ERROR_NOT_SUPPORTED
,
"got error %u
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
ERROR_NOT_SUPPORTED
,
"got error %u
\n
"
,
GetLastError
());
todo_wine_if
(
codes
[
i
]
==
FIOASYNC
)
todo_wine_if
(
codes
[
i
]
==
FIOASYNC
)
ok
(
!
size
,
"got size %u
\n
"
,
size
);
ok
(
!
size
,
"got size %u
\n
"
,
size
);
ok
(
key
==
123
,
"got key %Iu
\n
"
,
key
);
ok
(
key
==
123
,
"got key %Iu
\n
"
,
key
);
todo_wine_if
(
codes
[
i
]
==
FIOASYNC
)
todo_wine_if
(
codes
[
i
]
==
FIOASYNC
)
ok
(
overlapped_ptr
==
&
overlapped
,
"got overlapped %p
\n
"
,
overlapped_ptr
);
ok
(
overlapped_ptr
==
&
overlapped
,
"got overlapped %p
\n
"
,
overlapped_ptr
);
todo_wine_if
(
codes
[
i
]
==
FIOASYNC
||
codes
[
i
]
==
SIO_FLUSH
)
todo_wine_if
(
codes
[
i
]
==
FIOASYNC
)
ok
((
NTSTATUS
)
overlapped
.
Internal
==
STATUS_NOT_SUPPORTED
,
ok
((
NTSTATUS
)
overlapped
.
Internal
==
STATUS_NOT_SUPPORTED
,
"got status %#x
\n
"
,
(
NTSTATUS
)
overlapped
.
Internal
);
"got status %#x
\n
"
,
(
NTSTATUS
)
overlapped
.
Internal
);
todo_wine_if
(
codes
[
i
]
==
FIOASYNC
)
todo_wine_if
(
codes
[
i
]
==
FIOASYNC
)
...
@@ -4182,15 +4178,13 @@ static void test_unsupported_ioctls(void)
...
@@ -4182,15 +4178,13 @@ static void test_unsupported_ioctls(void)
apc_count
=
0
;
apc_count
=
0
;
size
=
0xdeadbeef
;
size
=
0xdeadbeef
;
ret
=
WSAIoctl
(
s
,
codes
[
i
],
NULL
,
0
,
NULL
,
0
,
&
size
,
&
overlapped
,
socket_apc
);
ret
=
WSAIoctl
(
s
,
codes
[
i
],
NULL
,
0
,
NULL
,
0
,
&
size
,
&
overlapped
,
socket_apc
);
todo_wine_if
(
codes
[
i
]
==
SIO_FLUSH
)
ok
(
ret
==
-
1
,
"expected failure
\n
"
);
ok
(
ret
==
-
1
,
"expected failure
\n
"
);
todo_wine_if
(
codes
[
i
]
==
FIOASYNC
)
todo_wine_if
(
codes
[
i
]
==
FIOASYNC
||
codes
[
i
]
==
SIO_FLUSH
)
ok
(
WSAGetLastError
()
==
ERROR_IO_PENDING
,
"got error %u
\n
"
,
WSAGetLastError
());
ok
(
WSAGetLastError
()
==
ERROR_IO_PENDING
,
"got error %u
\n
"
,
WSAGetLastError
());
todo_wine_if
(
codes
[
i
]
==
SIO_FLUSH
)
ok
(
size
==
0xdeadbeef
,
"got size %u
\n
"
,
size
);
ok
(
size
==
0xdeadbeef
,
"got size %u
\n
"
,
size
);
ret
=
SleepEx
(
0
,
TRUE
);
ret
=
SleepEx
(
0
,
TRUE
);
todo_wine_if
(
codes
[
i
]
==
FIOASYNC
||
codes
[
i
]
==
SIO_FLUSH
)
todo_wine_if
(
codes
[
i
]
==
FIOASYNC
)
ok
(
ret
==
WAIT_IO_COMPLETION
,
"got %d
\n
"
,
ret
);
ok
(
ret
==
WAIT_IO_COMPLETION
,
"got %d
\n
"
,
ret
);
if
(
ret
==
WAIT_IO_COMPLETION
)
if
(
ret
==
WAIT_IO_COMPLETION
)
{
{
...
...
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