mirror of
https://github.com/reactos/reactos.git
synced 2025-06-04 08:50:27 +00:00
[HAL]
- Fix the length calculation for the resource requirements list svn path=/trunk/; revision=53328
This commit is contained in:
parent
2cbe366a65
commit
d0de510428
1 changed files with 2 additions and 2 deletions
|
@ -983,8 +983,8 @@ HalpQueryAcpiResourceRequirements(OUT PIO_RESOURCE_REQUIREMENTS_LIST *Requiremen
|
|||
HalpAcpiDetectResourceListSize(&Count);
|
||||
|
||||
/* Compute size of the list and allocate it */
|
||||
ListSize = sizeof(IO_RESOURCE_LIST) * (Count - 1) +
|
||||
sizeof(IO_RESOURCE_REQUIREMENTS_LIST);
|
||||
ListSize = FIELD_OFFSET(IO_RESOURCE_REQUIREMENTS_LIST, List[0].Descriptors) +
|
||||
((Count - 1) * sizeof(IO_RESOURCE_DESCRIPTOR));
|
||||
RequirementsList = ExAllocatePoolWithTag(PagedPool, ListSize, ' laH');
|
||||
if (RequirementsList)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue