- Hey Arch, don't combine code for 2 different length calculation algorithms into 1 broken mess

svn path=/trunk/; revision=53330
This commit is contained in:
Cameron Gutman
2011-08-19 23:29:21 +00:00
parent b95c8dcec8
commit 5ead645eb9
+1 -1
View File
@@ -986,7 +986,7 @@ HalpQueryAcpiResourceRequirements(OUT PIO_RESOURCE_REQUIREMENTS_LIST *Requiremen
/* 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)