Allocate mem for the structure, not only for a pointer.
Modified: trunk/reactos/drivers/storage/pciidex/pdo.c
--- trunk/reactos/drivers/storage/pciidex/pdo.c 2005-11-08 21:07:11 UTC (rev 19067) +++ trunk/reactos/drivers/storage/pciidex/pdo.c 2005-11-08 21:49:27 UTC (rev 19068) @@ -180,7 +180,7 @@
/* 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)