Skip to content

Commit 3d143c0

Browse files
committed
- Partially revert r53272 (I forgot that DEVICE_RELATIONS stores a pointer array)
svn path=/trunk/; revision=53274
1 parent 85850fc commit 3d143c0

File tree

1 file changed

+2
-2
lines changed
  • reactos/drivers/bus/acpi

1 file changed

+2
-2
lines changed

reactos/drivers/bus/acpi/pnp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ Bus_FDO_PnP (
193193
//
194194

195195
length = sizeof(DEVICE_RELATIONS) +
196-
(((numPdosPresent + prevcount) - 1) * sizeof (DEVICE_OBJECT));
196+
(((numPdosPresent + prevcount) - 1) * sizeof (PDEVICE_OBJECT));
197197

198198
relations = (PDEVICE_RELATIONS) ExAllocatePoolWithTag (PagedPool,
199199
length, 'IPCA');
@@ -214,7 +214,7 @@ Bus_FDO_PnP (
214214
//
215215
if (prevcount) {
216216
RtlCopyMemory (relations->Objects, oldRelations->Objects,
217-
prevcount * sizeof (DEVICE_OBJECT));
217+
prevcount * sizeof (PDEVICE_OBJECT));
218218
}
219219

220220
relations->Count = prevcount + numPdosPresent;

0 commit comments

Comments
 (0)