ws2_32: Avoid kernel32 functions in system APC calls.
kernel32 functions might modify the last error, which should be avoided here.
This commit is contained in:
parent
ecda8fd501
commit
49cdebad4b
|
@ -2079,7 +2079,7 @@ static NTSTATUS WS2_async_accept_recv( void *user, IO_STATUS_BLOCK *iosb,
|
||||||
return status;
|
return status;
|
||||||
|
|
||||||
if (wsa->user_overlapped->hEvent)
|
if (wsa->user_overlapped->hEvent)
|
||||||
SetEvent(wsa->user_overlapped->hEvent);
|
NtSetEvent(wsa->user_overlapped->hEvent, NULL);
|
||||||
if (wsa->cvalue)
|
if (wsa->cvalue)
|
||||||
WS_AddCompletion( HANDLE2SOCKET(wsa->listen_socket), wsa->cvalue, iosb->u.Status, iosb->Information );
|
WS_AddCompletion( HANDLE2SOCKET(wsa->listen_socket), wsa->cvalue, iosb->u.Status, iosb->Information );
|
||||||
|
|
||||||
|
@ -2165,7 +2165,7 @@ finish:
|
||||||
iosb->Information = 0;
|
iosb->Information = 0;
|
||||||
|
|
||||||
if (wsa->user_overlapped->hEvent)
|
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 );
|
if (wsa->read) release_async_io( &wsa->read->io );
|
||||||
release_async_io( &wsa->io );
|
release_async_io( &wsa->io );
|
||||||
|
|
Loading…
Reference in New Issue