mirror of
https://github.com/reactos/reactos.git
synced 2025-06-10 20:34:59 +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
1 changed files with 2 additions and 2 deletions
|
@ -193,7 +193,7 @@ Bus_FDO_PnP (
|
||||||
//
|
//
|
||||||
|
|
||||||
length = sizeof(DEVICE_RELATIONS) +
|
length = sizeof(DEVICE_RELATIONS) +
|
||||||
(((numPdosPresent + prevcount) - 1) * sizeof (DEVICE_OBJECT));
|
(((numPdosPresent + prevcount) - 1) * sizeof (PDEVICE_OBJECT));
|
||||||
|
|
||||||
relations = (PDEVICE_RELATIONS) ExAllocatePoolWithTag (PagedPool,
|
relations = (PDEVICE_RELATIONS) ExAllocatePoolWithTag (PagedPool,
|
||||||
length, 'IPCA');
|
length, 'IPCA');
|
||||||
|
@ -214,7 +214,7 @@ Bus_FDO_PnP (
|
||||||
//
|
//
|
||||||
if (prevcount) {
|
if (prevcount) {
|
||||||
RtlCopyMemory (relations->Objects, oldRelations->Objects,
|
RtlCopyMemory (relations->Objects, oldRelations->Objects,
|
||||||
prevcount * sizeof (DEVICE_OBJECT));
|
prevcount * sizeof (PDEVICE_OBJECT));
|
||||||
}
|
}
|
||||||
|
|
||||||
relations->Count = prevcount + numPdosPresent;
|
relations->Count = prevcount + numPdosPresent;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue