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
9dccb294
Commit
9dccb294
authored
Sep 06, 2002
by
Martin Wilck
Committed by
Alexandre Julliard
Sep 06, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WS2_register_async_shutdown(): Try immediate completion, in case an
app never waits for anything. WS_accept(): Avoid crash if addr parameter is NULL.
parent
40681ff2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
socket.c
dlls/winsock/socket.c
+6
-0
No files found.
dlls/winsock/socket.c
View file @
9dccb294
...
@@ -1371,7 +1371,12 @@ static int WS2_register_async_shutdown ( SOCKET s, int fd, int type )
...
@@ -1371,7 +1371,12 @@ static int WS2_register_async_shutdown ( SOCKET s, int fd, int type )
ws2_async_cleanup
(
&
wsa
->
async
);
ws2_async_cleanup
(
&
wsa
->
async
);
goto
out
;
goto
out
;
}
}
/* Try immediate completion */
if
(
WSAGetOverlappedResult
(
(
HANDLE
)
s
,
ovl
,
NULL
,
FALSE
,
NULL
)
)
return
0
;
if
(
(
err
=
WSAGetLastError
())
==
WSA_IO_INCOMPLETE
)
return
0
;
return
0
;
return
WSAEINVAL
;
out_close:
out_close:
WSACloseEvent
(
ovl
->
hEvent
);
WSACloseEvent
(
ovl
->
hEvent
);
...
@@ -1414,6 +1419,7 @@ SOCKET WINAPI WS_accept(SOCKET s, struct WS_sockaddr *addr,
...
@@ -1414,6 +1419,7 @@ SOCKET WINAPI WS_accept(SOCKET s, struct WS_sockaddr *addr,
SERVER_END_REQ
;
SERVER_END_REQ
;
if
(
as
)
if
(
as
)
{
{
if
(
addr
)
WS_getpeername
(
as
,
addr
,
addrlen32
);
WS_getpeername
(
as
,
addr
,
addrlen32
);
return
as
;
return
as
;
}
}
...
...
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