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
0198255b
Commit
0198255b
authored
May 09, 2005
by
Eric Pouech
Committed by
Alexandre Julliard
May 09, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some fixes on async shutdown.
parent
5f0031eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
socket.c
dlls/winsock/socket.c
+7
-4
No files found.
dlls/winsock/socket.c
View file @
0198255b
...
@@ -1038,8 +1038,12 @@ static ULONG ws2_queue_async(struct ws2_async* wsa, IO_STATUS_BLOCK* iosb)
...
@@ -1038,8 +1038,12 @@ static ULONG ws2_queue_async(struct ws2_async* wsa, IO_STATUS_BLOCK* iosb)
if
(
status
)
iosb
->
u
.
Status
=
status
;
if
(
status
)
iosb
->
u
.
Status
=
status
;
if
(
iosb
->
u
.
Status
!=
STATUS_PENDING
)
if
(
iosb
->
u
.
Status
!=
STATUS_PENDING
)
{
{
(
apc
)(
wsa
,
iosb
,
iosb
->
u
.
Status
);
/* Note: we get here a non zero status when we couldn't queue the async
return
iosb
->
u
.
Status
;
* in the server. Therefore, we simply terminate the async.
*/
status
=
iosb
->
u
.
Status
;
ws2_async_terminate
(
wsa
,
iosb
);
return
status
;
}
}
NtCurrentTeb
()
->
num_async_io
++
;
NtCurrentTeb
()
->
num_async_io
++
;
return
STATUS_SUCCESS
;
return
STATUS_SUCCESS
;
...
@@ -1349,7 +1353,7 @@ static int WS2_register_async_shutdown( SOCKET s, int fd, enum ws2_mode mode )
...
@@ -1349,7 +1353,7 @@ static int WS2_register_async_shutdown( SOCKET s, int fd, enum ws2_mode mode )
if
(
!
wsa
)
if
(
!
wsa
)
goto
out_close
;
goto
out_close
;
/* Hack: this will cause ws2_async_
cleanup
() to free the overlapped structure */
/* Hack: this will cause ws2_async_
terminate
() to free the overlapped structure */
wsa
->
user_overlapped
=
NULL
;
wsa
->
user_overlapped
=
NULL
;
if
(
(
ret
=
ws2_queue_async
(
wsa
,
iosb
))
)
if
(
(
ret
=
ws2_queue_async
(
wsa
,
iosb
))
)
{
{
...
@@ -1363,7 +1367,6 @@ static int WS2_register_async_shutdown( SOCKET s, int fd, enum ws2_mode mode )
...
@@ -1363,7 +1367,6 @@ static int WS2_register_async_shutdown( SOCKET s, int fd, enum ws2_mode mode )
out_close:
out_close:
WSACloseEvent
(
ovl
->
hEvent
);
WSACloseEvent
(
ovl
->
hEvent
);
out_free:
out_free:
HeapFree
(
GetProcessHeap
(),
0
,
iosb
);
HeapFree
(
GetProcessHeap
(),
0
,
ovl
);
HeapFree
(
GetProcessHeap
(),
0
,
ovl
);
out:
out:
return
err
;
return
err
;
...
...
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