static const CHAR *PvdeviceLegacyPrefix[] = {
"PCI\\VEN_5853&DEV_0001",
"PCI\\VEN_5853&DEV_0002",
+ NULL
};
static BOOLEAN
UNREFERENCED_PARAMETER(Context);
- for (Index = 0; Index < ARRAYSIZE(PvdeviceLegacyPrefix); Index++) {
+ for (Index = 0; PvdeviceLegacyPrefix[Index] != NULL; Index++) {
const CHAR *Prefix = PvdeviceLegacyPrefix[Index];
if (_strnicmp(DeviceID, Prefix, strlen(Prefix)) == 0)
}
static const CHAR *PvdeviceVendorDeviceID[] = {
- "PCI\\VEN_5853&DEV_C000&SUBSYS_C0005853&REV_01", // XenServer
+#ifdef VENDOR_DEVICE_ID_STR
+ "PCI\\VEN_5853&DEV_" VENDOR_DEVICE_ID_STR "&SUBSYS_C0005853&REV_01",
+#endif
+ NULL
};
static BOOLEAN
{
ULONG Index;
- for (Index = 0; Index < ARRAYSIZE(PvdeviceVendorDeviceID); Index++) {
+ for (Index = 0; PvdeviceVendorDeviceID[Index] != NULL; Index++) {
const CHAR *DeviceID = PvdeviceVendorDeviceID[Index];
if (XENFILT_EMULATED(IsDevicePresent,