1
0
mirror of https://github.com/wine-mirror/wine synced 2024-06-29 06:14:34 +00:00

ntdll: Do not set io->Status at the end of sock_ioctl().

The only cases this affects are Wine-internal sockopt ioctls, and ws2_32 does not read back the IOSB status for those.
This commit is contained in:
Elizabeth Figura 2024-06-13 22:20:29 -05:00 committed by Alexandre Julliard
parent 506cd1345b
commit 62df7633e5

View File

@ -1485,6 +1485,10 @@ NTSTATUS sock_ioctl( HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc, void *apc
TRACE( "handle %p, code %#x, in_buffer %p, in_size %u, out_buffer %p, out_size %u\n",
handle, code, in_buffer, in_size, out_buffer, out_size );
/* many of the below internal codes return success but don't completely
* fill the iosb or signal completion; such sockopts are only called
* synchronously by ws2_32 */
switch (code)
{
case IOCTL_AFD_BIND:
@ -2528,7 +2532,5 @@ NTSTATUS sock_ioctl( HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc, void *apc
if (needs_close) close( fd );
if (status != STATUS_PENDING && !NT_ERROR(status)) io->Status = status;
return status;
}