- Partially revert r53272 (I forgot that DEVICE_RELATIONS stores a pointer array)

svn path=/trunk/; revision=53274
This commit is contained in:
Cameron Gutman 2011-08-17 05:51:21 +00:00
parent 85850fc32b
commit 3d143c0ab0

View file

@ -193,7 +193,7 @@ Bus_FDO_PnP (
//
length = sizeof(DEVICE_RELATIONS) +
(((numPdosPresent + prevcount) - 1) * sizeof (DEVICE_OBJECT));
(((numPdosPresent + prevcount) - 1) * sizeof (PDEVICE_OBJECT));
relations = (PDEVICE_RELATIONS) ExAllocatePoolWithTag (PagedPool,
length, 'IPCA');
@ -214,7 +214,7 @@ Bus_FDO_PnP (
//
if (prevcount) {
RtlCopyMemory (relations->Objects, oldRelations->Objects,
prevcount * sizeof (DEVICE_OBJECT));
prevcount * sizeof (PDEVICE_OBJECT));
}
relations->Count = prevcount + numPdosPresent;