ndis.sys: Return the IOSB status from ndis_ioctl().

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51757
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2021-09-22 23:00:38 -05:00 committed by Alexandre Julliard
parent ef18fb9a3b
commit ff664bf817
1 changed files with 3 additions and 1 deletions

View File

@ -98,6 +98,7 @@ static NTSTATUS WINAPI ndis_ioctl(DEVICE_OBJECT *device, IRP *irp)
{ {
IO_STACK_LOCATION *irpsp = IoGetCurrentIrpStackLocation( irp ); IO_STACK_LOCATION *irpsp = IoGetCurrentIrpStackLocation( irp );
MIB_IF_ROW2 *netdev = device->DeviceExtension; MIB_IF_ROW2 *netdev = device->DeviceExtension;
NTSTATUS status;
TRACE( "ioctl %x insize %u outsize %u\n", TRACE( "ioctl %x insize %u outsize %u\n",
irpsp->Parameters.DeviceIoControl.IoControlCode, irpsp->Parameters.DeviceIoControl.IoControlCode,
@ -115,8 +116,9 @@ static NTSTATUS WINAPI ndis_ioctl(DEVICE_OBJECT *device, IRP *irp)
break; break;
} }
status = irp->IoStatus.u.Status;
IoCompleteRequest( irp, IO_NO_INCREMENT ); IoCompleteRequest( irp, IO_NO_INCREMENT );
return STATUS_SUCCESS; return status;
} }
static void add_key(const WCHAR *guidstrW, const MIB_IF_ROW2 *netdev) static void add_key(const WCHAR *guidstrW, const MIB_IF_ROW2 *netdev)