Commit 49cdebad authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

ws2_32: Avoid kernel32 functions in system APC calls.

kernel32 functions might modify the last error, which should be avoided here.
parent ecda8fd5
......@@ -2079,7 +2079,7 @@ static NTSTATUS WS2_async_accept_recv( void *user, IO_STATUS_BLOCK *iosb,
return status;
if (wsa->user_overlapped->hEvent)
SetEvent(wsa->user_overlapped->hEvent);
NtSetEvent(wsa->user_overlapped->hEvent, NULL);
if (wsa->cvalue)
WS_AddCompletion( HANDLE2SOCKET(wsa->listen_socket), wsa->cvalue, iosb->u.Status, iosb->Information );
......@@ -2165,7 +2165,7 @@ finish:
iosb->Information = 0;
if (wsa->user_overlapped->hEvent)
SetEvent(wsa->user_overlapped->hEvent);
NtSetEvent(wsa->user_overlapped->hEvent, NULL);
if (wsa->read) release_async_io( &wsa->read->io );
release_async_io( &wsa->io );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment