Allocate mem for the structure, not only for a pointer.

svn path=/trunk/; revision=19068
This commit is contained in:
Gé van Geldorp 2005-11-08 21:49:27 +00:00
parent 7bccddff96
commit 4a0e4dc0f4

View file

@ -180,7 +180,7 @@ PciIdeXPdoQueryResourceRequirements(
/* FIXME: what to do with BusMasterPortBase? */
ListSize = sizeof(PIO_RESOURCE_REQUIREMENTS_LIST)
ListSize = sizeof(IO_RESOURCE_REQUIREMENTS_LIST)
+ 2 * sizeof(IO_RESOURCE_DESCRIPTOR);
RequirementsList = ExAllocatePool(PagedPool, ListSize);
if (!RequirementsList)