mirror of
https://github.com/reactos/reactos.git
synced 2024-06-01 02:01:57 +00:00
- Partially revert r53272 (I forgot that DEVICE_RELATIONS stores a pointer array)
svn path=/trunk/; revision=53274
This commit is contained in:
parent
85850fc32b
commit
3d143c0ab0
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue