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
0f9d9a03
Commit
0f9d9a03
authored
May 05, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
May 06, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Map EINPROGRESS to STATUS_DEVICE_NOT_READY.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
523032e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
socket.c
dlls/ws2_32/socket.c
+5
-5
No files found.
dlls/ws2_32/socket.c
View file @
0f9d9a03
...
...
@@ -816,8 +816,8 @@ static NTSTATUS sock_get_ntstatus( int err )
case
EINVAL
:
return
STATUS_INVALID_PARAMETER
;
case
ENFILE
:
case
EMFILE
:
return
STATUS_TOO_MANY_OPENED_FILES
;
case
EINPROGRESS
:
case
EWOULDBLOCK
:
return
STATUS_DEVICE_NOT_READY
;
case
EINPROGRESS
:
return
STATUS_PENDING
;
case
EALREADY
:
return
STATUS_NETWORK_BUSY
;
case
ENOTSOCK
:
return
STATUS_OBJECT_TYPE_MISMATCH
;
case
EDESTADDRREQ
:
return
STATUS_INVALID_PARAMETER
;
...
...
@@ -858,8 +858,8 @@ UINT sock_get_error( int err )
case
EFAULT
:
return
WSAEFAULT
;
case
EINVAL
:
return
WSAEINVAL
;
case
EMFILE
:
return
WSAEMFILE
;
case
EINPROGRESS
:
case
EWOULDBLOCK
:
return
WSAEWOULDBLOCK
;
case
EINPROGRESS
:
return
WSAEINPROGRESS
;
case
EALREADY
:
return
WSAEALREADY
;
case
EBADF
:
case
ENOTSOCK
:
return
WSAENOTSOCK
;
...
...
@@ -943,8 +943,8 @@ static NTSTATUS sock_error_to_ntstatus( DWORD err )
case
WSAEFAULT
:
return
STATUS_ACCESS_VIOLATION
;
case
WSAEINVAL
:
return
STATUS_INVALID_PARAMETER
;
case
WSAEMFILE
:
return
STATUS_TOO_MANY_OPENED_FILES
;
case
WSAEINPROGRESS
:
case
WSAEWOULDBLOCK
:
return
STATUS_DEVICE_NOT_READY
;
case
WSAEINPROGRESS
:
return
STATUS_PENDING
;
case
WSAEALREADY
:
return
STATUS_NETWORK_BUSY
;
case
WSAENOTSOCK
:
return
STATUS_OBJECT_TYPE_MISMATCH
;
case
WSAEDESTADDRREQ
:
return
STATUS_INVALID_PARAMETER
;
...
...
@@ -2958,7 +2958,7 @@ int WINAPI WS_connect(SOCKET s, const struct WS_sockaddr* name, int namelen)
if
(
ret
==
0
)
goto
connect_success
;
if
(
ret
==
WSAE
INPROGRESS
)
if
(
ret
==
WSAE
WOULDBLOCK
)
{
/* tell wineserver that a connection is in progress */
_enable_event
(
SOCKET2HANDLE
(
s
),
FD_CONNECT
|
FD_READ
|
FD_WRITE
,
...
...
@@ -3047,7 +3047,7 @@ static BOOL WINAPI WS2_ConnectEx(SOCKET s, const struct WS_sockaddr* name, int n
if
(
WSASend
(
s
,
&
wsabuf
,
sendBuf
?
1
:
0
,
sent
,
0
,
ov
,
NULL
)
!=
SOCKET_ERROR
)
goto
connection_success
;
}
else
if
(
ret
==
WSAE
INPROGRESS
)
else
if
(
ret
==
WSAE
WOULDBLOCK
)
{
struct
ws2_async
*
wsa
;
DWORD
size
;
...
...
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