Author: cgutman
Date: Fri Aug 19 23:29:21 2011
New Revision: 53330
URL:
http://svn.reactos.org/svn/reactos?rev=53330&view=rev
Log:
[HAL]
- Hey Arch, don't combine code for 2 different length calculation algorithms into 1
broken mess
Modified:
trunk/reactos/hal/halx86/generic/acpi/halacpi.c
Modified: trunk/reactos/hal/halx86/generic/acpi/halacpi.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halx86/generic/acpi/ha…
==============================================================================
--- trunk/reactos/hal/halx86/generic/acpi/halacpi.c [iso-8859-1] (original)
+++ trunk/reactos/hal/halx86/generic/acpi/halacpi.c [iso-8859-1] Fri Aug 19 23:29:21 2011
@@ -986,7 +986,7 @@
/* Compute size of the list and allocate it */
ListSize = FIELD_OFFSET(IO_RESOURCE_REQUIREMENTS_LIST, List[0].Descriptors) +
- ((Count - 1) * sizeof(IO_RESOURCE_DESCRIPTOR));
+ (Count * sizeof(IO_RESOURCE_DESCRIPTOR));
DPRINT1("Resource list size: %d\n", ListSize);
RequirementsList = ExAllocatePoolWithTag(PagedPool, ListSize, ' laH');
if (RequirementsList)