- MajorFunction has IRP_MJ_MAXIMUM_FUNCTION positions

- Sorry for so many commits on the same function

svn path=/trunk/; revision=41090
This commit is contained in:
Cameron Gutman 2009-05-24 00:49:02 +00:00
parent d63e071c3d
commit e9cab0901b

View file

@ -2788,7 +2788,7 @@ NdisMRegisterDevice(
return NDIS_STATUS_RESOURCES; return NDIS_STATUS_RESOURCES;
} }
for (i = 0; i < IRP_MJ_MAXIMUM_FUNCTION; i++) for (i = 0; i <= IRP_MJ_MAXIMUM_FUNCTION; i++)
DriverBlock->DriverObject->MajorFunction[i] = MajorFunctions[i]; DriverBlock->DriverObject->MajorFunction[i] = MajorFunctions[i];
DriverBlock->DriverObject->MajorFunction[IRP_MJ_PNP] = NdisIDispatchPnp; DriverBlock->DriverObject->MajorFunction[IRP_MJ_PNP] = NdisIDispatchPnp;