Author: cgutman
Date: Wed Aug 17 05:51:21 2011
New Revision: 53274
URL:
http://svn.reactos.org/svn/reactos?rev=53274&view=rev
Log:
- Partially revert r53272 (I forgot that DEVICE_RELATIONS stores a pointer array)
Modified:
trunk/reactos/drivers/bus/acpi/pnp.c
Modified: trunk/reactos/drivers/bus/acpi/pnp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/acpi/pnp.c?rev…
==============================================================================
--- trunk/reactos/drivers/bus/acpi/pnp.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/bus/acpi/pnp.c [iso-8859-1] Wed Aug 17 05:51:21 2011
@@ -193,7 +193,7 @@
//
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 @@
//
if (prevcount) {
RtlCopyMemory (relations->Objects, oldRelations->Objects,
- prevcount * sizeof (DEVICE_OBJECT));
+ prevcount * sizeof (PDEVICE_OBJECT));
}
relations->Count = prevcount + numPdosPresent;