Commit 2bec828a authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

ndis.sys: Return STATUS_INVALID_PARAMETER for unknown OIDs.

parent ff664bf8
......@@ -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);
......
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