ndis.sys: Return STATUS_INVALID_PARAMETER for unknown OIDs.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ff664bf817
commit
2bec828af4
@ -89,7 +89,7 @@ static void query_global_stats(IRP *irp, const MIB_IF_ROW2 *netdev)
|
||||
}
|
||||
default:
|
||||
FIXME( "Unsupported OID %x\n", oid );
|
||||
irp->IoStatus.u.Status = STATUS_NOT_SUPPORTED;
|
||||
irp->IoStatus.u.Status = STATUS_INVALID_PARAMETER;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -63,7 +63,7 @@ static void test_device(const WCHAR *service_name, const MIB_IF_ROW2 *row)
|
||||
iosb.Information = 0xdeadbeef;
|
||||
status = NtDeviceIoControlFile( netdev, NULL, NULL, NULL, &iosb,
|
||||
IOCTL_NDIS_QUERY_GLOBAL_STATS, &oid, sizeof(oid), &medium, sizeof(medium) );
|
||||
todo_wine ok(status == STATUS_INVALID_PARAMETER, "got status %#x\n", status);
|
||||
ok(status == STATUS_INVALID_PARAMETER, "got status %#x\n", status);
|
||||
ok(iosb.Status == 0xdeadbeef, "got %#x\n", iosb.Status);
|
||||
ok(iosb.Information == 0xdeadbeef, "got size %#Ix\n", iosb.Information);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user