mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 20:03:12 +00:00
Allocate mem for the structure, not only for a pointer.
svn path=/trunk/; revision=19068
This commit is contained in:
parent
7bccddff96
commit
4a0e4dc0f4
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ PciIdeXPdoQueryResourceRequirements(
|
||||||
|
|
||||||
/* FIXME: what to do with BusMasterPortBase? */
|
/* FIXME: what to do with BusMasterPortBase? */
|
||||||
|
|
||||||
ListSize = sizeof(PIO_RESOURCE_REQUIREMENTS_LIST)
|
ListSize = sizeof(IO_RESOURCE_REQUIREMENTS_LIST)
|
||||||
+ 2 * sizeof(IO_RESOURCE_DESCRIPTOR);
|
+ 2 * sizeof(IO_RESOURCE_DESCRIPTOR);
|
||||||
RequirementsList = ExAllocatePool(PagedPool, ListSize);
|
RequirementsList = ExAllocatePool(PagedPool, ListSize);
|
||||||
if (!RequirementsList)
|
if (!RequirementsList)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue