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
a0f00bd6
Commit
a0f00bd6
authored
Nov 27, 2018
by
Hans Leidekker
Committed by
Alexandre Julliard
Nov 27, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webservices: Use set_blocking in more places.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
74f425e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
channel.c
dlls/webservices/channel.c
+2
-4
No files found.
dlls/webservices/channel.c
View file @
a0f00bd6
...
...
@@ -2245,7 +2245,6 @@ HRESULT WINAPI WsWriteMessageEnd( WS_CHANNEL *handle, WS_MESSAGE *msg, const WS_
static
HRESULT
sock_accept
(
SOCKET
socket
,
HANDLE
wait
,
HANDLE
cancel
,
SOCKET
*
ret
)
{
HANDLE
handles
[]
=
{
wait
,
cancel
};
ULONG
nonblocking
=
0
;
HRESULT
hr
=
S_OK
;
if
(
WSAEventSelect
(
socket
,
handles
[
0
],
FD_ACCEPT
))
return
HRESULT_FROM_WIN32
(
WSAGetLastError
()
);
...
...
@@ -2256,7 +2255,7 @@ static HRESULT sock_accept( SOCKET socket, HANDLE wait, HANDLE cancel, SOCKET *r
if
((
*
ret
=
accept
(
socket
,
NULL
,
NULL
))
!=
-
1
)
{
WSAEventSelect
(
*
ret
,
NULL
,
0
);
ioctlsocket
(
*
ret
,
FIONBIO
,
&
nonblocking
);
set_blocking
(
*
ret
,
TRUE
);
break
;
}
hr
=
HRESULT_FROM_WIN32
(
WSAGetLastError
()
);
...
...
@@ -2296,7 +2295,6 @@ HRESULT channel_accept_tcp( SOCKET socket, HANDLE wait, HANDLE cancel, WS_CHANNE
static
HRESULT
sock_wait
(
SOCKET
socket
,
HANDLE
wait
,
HANDLE
cancel
)
{
HANDLE
handles
[]
=
{
wait
,
cancel
};
ULONG
nonblocking
=
0
;
HRESULT
hr
;
if
(
WSAEventSelect
(
socket
,
handles
[
0
],
FD_READ
))
return
HRESULT_FROM_WIN32
(
WSAGetLastError
()
);
...
...
@@ -2317,7 +2315,7 @@ static HRESULT sock_wait( SOCKET socket, HANDLE wait, HANDLE cancel )
}
WSAEventSelect
(
socket
,
NULL
,
0
);
ioctlsocket
(
socket
,
FIONBIO
,
&
nonblocking
);
set_blocking
(
socket
,
TRUE
);
return
hr
;
}
...
...
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