Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
aadcff49
Commit
aadcff49
authored
Jun 04, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 07, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Wait for synchronous ioctl completion in server_ioctl_sock().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8c26fca5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
socket.c
dlls/ws2_32/socket.c
+10
-0
No files found.
dlls/ws2_32/socket.c
View file @
aadcff49
...
...
@@ -3188,6 +3188,10 @@ static DWORD server_ioctl_sock( SOCKET s, DWORD code, LPVOID in_buff, DWORD in_s
if
(
!
((
ULONG_PTR
)
overlapped
->
hEvent
&
1
))
cvalue
=
overlapped
;
event
=
overlapped
->
hEvent
;
}
else
{
if
(
!
(
event
=
get_sync_event
()))
return
GetLastError
();
}
if
(
completion
)
{
...
...
@@ -3198,6 +3202,12 @@ static DWORD server_ioctl_sock( SOCKET s, DWORD code, LPVOID in_buff, DWORD in_s
status
=
NtDeviceIoControlFile
(
handle
,
event
,
apc
,
cvalue
,
piosb
,
code
,
in_buff
,
in_size
,
out_buff
,
out_size
);
if
(
status
==
STATUS_PENDING
&&
!
overlapped
)
{
if
(
WaitForSingleObject
(
event
,
INFINITE
)
==
WAIT_FAILED
)
return
-
1
;
status
=
piosb
->
u
.
Status
;
}
if
(
status
==
STATUS_NOT_SUPPORTED
)
{
FIXME
(
"Unsupported ioctl %x (device=%x access=%x func=%x method=%x)
\n
"
,
...
...
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