mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
[HAL]
- 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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user